Skip to content

[Enhancement]: Do not produce "fake" changes at TF state file #36837

Closed
@EugenKon

Description

@EugenKon

Description

Terraform version is v1.11.3
Resource is acme_certificate

When I run plan/apply I see these changes at our terraformstate.tf file:
It seems that changes are moved around:

@@ -12348,36 +12343,36 @@
             [
               {
                 "type": "get_attr",
-                "value": "dns_challenge"
-              },
-              {
-                "type": "index",
-                "value": {
-                  "value": 0,
-                  "type": "number"
+                "value": "certificate_p12_password"
               }
-              },
+            ],
+            [
               {
                 "type": "get_attr",
-                "value": "config"
+                "value": "account_key_pem"
               }
             ],
             [
               {
                 "type": "get_attr",
-                "value": "certificate_p12_password"
+                "value": "private_key_pem"
               }
             ],
             [
               {
                 "type": "get_attr",
-                "value": "account_key_pem"
+                "value": "dns_challenge"
+              },
+              {
+                "type": "index",
+                "value": {
+                  "value": 0,
+                  "type": "number"
                 }
-            ],
-            [
+              },
               {
                 "type": "get_attr",
-                "value": "private_key_pem"
+                "value": "config"
               }
             ],

Affected Resource(s) and/or Data Source(s)

  • N/A

Potential Terraform Configuration

References

No response

Would you like to implement a fix?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementnewnew issue not yet triagedwaiting-responseAn issue/pull request is waiting for a response from the community

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions