You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We would like to create and merge many pull requests by Renovate.
When we manage dependencies such as Terraform, Terraform Providers, tfsec, tflint, etc and create pull request per working directory, we have to handle many pull requests by Renovate.
I found that when we update tfsec and tflint we don't have to run terraform plan and terraform apply.
We only have to run tfsec and tflint.
On the other hand, when Terraform and Terraform Providers are updated, we have to run terraform plan and terraform apply.
By skipping terraform plan and terraform apply, we can efficiently update dependencies.
We can prevent unexpected changes from being applied
We can prevent CI failure due to terraform plan's unexpected changes
We can prevent API rate exceeded by terraform plan and terraform apply
How
Add the fields in tfaction-root.yaml.
skip_by_renovate
renovate_terraform_labels
When skip_terraform_by_renovate is true, in pull requests by Renovate terraform plan and terraform apply are skipped.
If commits by non Renovate are included in the pull request, terraform plan and terraform apply aren't skipped.
When pull request labels in renovate_terraform_labels are set, terraform plan and terraform apply are executed.
Motivation
We would like to create and merge many pull requests by Renovate.
When we manage dependencies such as Terraform, Terraform Providers, tfsec, tflint, etc and create pull request per working directory, we have to handle many pull requests by Renovate.
I found that when we update tfsec and tflint we don't have to run
terraform plan
andterraform apply
.We only have to run tfsec and tflint.
On the other hand, when Terraform and Terraform Providers are updated, we have to run
terraform plan
andterraform apply
.By skipping
terraform plan
andterraform apply
, we can efficiently update dependencies.terraform plan
's unexpected changesterraform plan
andterraform apply
How
Add the fields in
tfaction-root.yaml
.When
skip_terraform_by_renovate
is true, in pull requests by Renovateterraform plan
andterraform apply
are skipped.If commits by non Renovate are included in the pull request,
terraform plan
andterraform apply
aren't skipped.When pull request labels in
renovate_terraform_labels
are set,terraform plan
andterraform apply
are executed.Example Configuration
tfaction-root.yaml
renovate.json
The text was updated successfully, but these errors were encountered: