hashicorp / terraform-provider-awscc

Terraform AWS Cloud Control provider
https://registry.terraform.io/providers/hashicorp/awscc/latest/docs
Mozilla Public License 2.0
259 stars 119 forks source link

`lifecycle {ignore_changes}` does not ignore changes #381

Open drewmullen opened 2 years ago

drewmullen commented 2 years ago

Trying to ignore field due to bug

Affected Resource(s)

Terraform Configuration Files

resource "awscc_s3_bucket" "main" {
  name = "<>"

    lifecycle {
      ignore_changes = [object_lock_enabled]
    }
}

Expected Behavior

no changes on 2nd apply

Actual Behavior

  # awscc_s3_bucket.main will be updated in-place
  ~ resource "awscc_s3_bucket" "main" {
        id                                = "<>"
      + object_lock_enabled               = (known after apply)
        tags                              = [

Steps to Reproduce

  1. terraform apply
  2. terraform apply

Important Factoids

References

karancode commented 1 year ago

same for awscc_kinesisanalyticsv2_application resource. #954

MickSheppardWB commented 1 year ago

same for awscc_iot_domain_configuration resource

elliottkopp commented 8 months ago

Same for awscc_iotsitewise_gateway resource. Specifically:

  lifecycle {
    ignore_changes = [gateway_platform.greengrass]
  }