Terraform Version
Terraform Configuration Files
A file main.tf containing:
resource "gitlab_project" "project" {
name = "Test name"
description = "Test description"
}
An override file main_override.tf containing:
resource "gitlab_project" "project" {
description = "Test description extended"
lifecycle {
ignore_changes = all
}
}
Expected Behavior
- I execute
terraform apply just having in the current folder the main.tf file
- I add the main_override.tf file in the same folder and execute again
terraform apply
At the time of the second apply, Terraform should report that no action is needed, because I'm changing the description but I'm also adding an "ignore all" lifecycle directive.
Actual Behavior
Terraform changes the project description, ignoring the lifecycle definition in the override file.
Terraform Version
Terraform Configuration Files
A file main.tf containing:
An override file main_override.tf containing:
Expected Behavior
terraform applyjust having in the current folder the main.tf fileterraform applyAt the time of the second apply, Terraform should report that no action is needed, because I'm changing the description but I'm also adding an "ignore all" lifecycle directive.
Actual Behavior
Terraform changes the project description, ignoring the lifecycle definition in the override file.