Skip to content

Override not working with ignore_changes #21474

@randomswdev

Description

@randomswdev

Terraform Version

Terraform v0.12.0

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.

Metadata

Metadata

Assignees

Labels

bugconfigconfirmeda Terraform Core team member has reproduced this issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions