hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.71k stars 9.07k forks source link

[Bug]: Invalid `forces replacement` for `aws_accessanalyzer_analyzer` #37057

Open posquit0 opened 4 months ago

posquit0 commented 4 months ago

Terraform Core Version

1.8.1

AWS Provider Version

5.46.0

Affected Resource(s)

Expected Behavior

No change

Actual Behavior

 # module.analyzer["xxxxxx"].aws_accessanalyzer_analyzer.this must be replaced
-/+ resource "aws_accessanalyzer_analyzer" "this" {
      ~ arn           = "arn:aws:access-analyzer:ap-northeast-1:xxxxxx:analyzer/xxxxxxxxx" -> (known after apply)
      ~ id            = "xxxxxxxx" -> (known after apply)
        tags          = {
            ...
        }
        # (3 unchanged attributes hidden)

      + configuration { # forces replacement
        }
    }

Plan: 1 to add, 0 to change, 1 to destroy.

Relevant Error/Panic Output Snippet

No response

Terraform Configuration Files


resource "aws_accessanalyzer_analyzer" "this" {
  analyzer_name = "example"
  type = "ACCOUNT"

  configuration {
  }

  tags = {}
}

Steps to Reproduce

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

https://github.com/hashicorp/terraform-provider-aws/issues/35205

Would you like to implement a fix?

None

github-actions[bot] commented 4 months ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue

acwwat commented 4 months ago

As a workaround and to keep the configuration minimal, you can just remove the empty configuration block for now.