Terraform Integration #217
              
  
  Closed
              
          
                  
                    
                      BenLloydPearson
                    
                  
                
                  announced in
                Automation Example Bounties
              
            Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Assign Terraform Reviews
Automation Name: review_terraform
Automatically route Terraform changes to the appropriate team for review.
Conditions (all must be true):
Automation Actions:
org/infrastructureteam.Review New Terraform Modules
Automation Name: review_new_terraform_module
Request changes if a PR that creates a new Terraform module is missing one or more required components.
Conditions (all must be true):
/modulesdirectory.terraformcustom expression.Automation Actions:
⚠️ Missing Terraform ComponentsComment:
Notes for content producer:
my_moduleandexample1could be named anything, so the automation should account for this.terraformto detect the required components. You will need a for loop to process them, similar to the deprecated components example.Review Terraform Source Version
Automation Name: review_terraform_source_version
Ensure that all Terraform modules imported via a source URL specify a version.
Conditions (all must be true):
whitelistcustom expression that defines one or more whitelisted source locations.Automation Actions:
?ref=v1.0.0. Please update your Terraform files to follow this practice.Notes for content producer:
source =declaration lacks a reference declaration, eg.ref=v*.source = "git::https://github.com/terraform-aws-modules/terraform-aws-s3-bucket.git?ref=v1.0.0"Reivew Terraform Module Name
Automation Name: review_terraform_module_name
Request changes if a PR creates a new Terraform module that is missing a required prefix or keyword in the name.
Conditions (all must be true):
Automation Actions:
Notes for content producer
The comment gitStream posts should look like this. Please ensure the prefixes and keywords are properly displayed.
Use this custom expression to define the required keywords and prefixes.
Beta Was this translation helpful? Give feedback.
All reactions