Skip to content

"Objects changed outside of Terraform" shown wrongly for various resources #19727

Closed
@dimisjim

Description

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Please open a new issue

  1. Since this issue was opened on Jun 9, 2021, we have had two major rounds of fixes ([Tracking Issue] Order is lost in JSON/policies when applied #21968, Perpetual diffs / Objects have changed outside of Terraform (v3.70.0+) #23288 and iam: Improve policy diff handling #28836 et al.) that seem to have improved and/or eliminated changed reports being shown wrongly
  2. In order to alert maintainers and the community to what is still not working, open a new issue with a title similar to [Bug]: ec2/instance objects have changed outside of Terraform. Check to make sure one doesn't already exist for the resource you are working on.

Terraform CLI and Terraform AWS Provider Version

terraform version: 1.0.0
aws provider version: 3.44.0

Affected Resource(s)

Related to jsonencode list items ordering

  • aws_s3_bucket_policy
  • aws_iam_role

Related to latest_restorable_time attribute with drifts

  • aws_db_instance

and more

Expected Behavior

No change was made outside of terraform so these should not be visible there as well

Actual Behavior

Terraform thinks that something was changed outside terraform (which is not the case)

References

This issue was first submitted in hashicorp/terraform#28911

Metadata

Assignees

No one assigned

    Labels

    enhancementRequests to existing resources that expand the functionality or scope.service/iamIssues and PRs that pertain to the iam service.service/rdsIssues and PRs that pertain to the rds service.upstream-terraformAddresses functionality related to the Terraform core binary.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions