Skip to content

Conversation

@takaishi
Copy link
Collaborator

fix: #10

The plan result often has in-place update with known after apply .

  # env_variable.test will be updated in-place
  ~ resource "env_variable" "test" {
        id   = "07ec30c9d869e0f6392f"
      ~ name = "07ec30c9d869e0f6392f" -> (known after apply)
    }

But terraform-j2md can't interpret known after apply now, so the detail looks like deleting the field.

# env_variable.test will be updated in-place
@@ -1,6 +1,5 @@
 {
   "id": "07ec30c9d869e0f6392f",
-  "name": "07ec30c9d869e0f6392f",
   "value": "REDACTED_SENSITIVE"
 }
 

This PR changes to display known after apply as after changes.

# env_variable.test will be updated in-place
@@ -1,6 +1,6 @@
 {
   "id": "07ec30c9d869e0f6392f",
-  "name": "07ec30c9d869e0f6392f",
+  "name": "(known after apply)",
   "value": "REDACTED_SENSITIVE"
 }
 

@takaishi takaishi self-assigned this Jul 27, 2023
@takaishi takaishi requested review from akihiro17 and okkez July 27, 2023 00:22
@takaishi takaishi marked this pull request as ready for review July 27, 2023 00:22
Copy link
Contributor

@okkez okkez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@akihiro17 akihiro17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@takaishi
Copy link
Collaborator Author

thanks!

@takaishi takaishi merged commit 79d6e35 into master Jul 31, 2023
@takaishi takaishi deleted the known_after_apply branch July 31, 2023 05:06
@takaishi
Copy link
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Change details can't display well if updating is known after apply in-place update

4 participants