-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
resource/aws_cloudformation_stack: Sets outputs
as Computed
when other fields change
#33059
Conversation
Community NoteVoting for Prioritization
For Submitters
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀.
% make testacc TESTARGS='-run=TestAccCloudFormationStack_' PKG=cloudformation ACCTEST_PARALLELISM=3
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/cloudformation/... -v -count 1 -parallel 3 -run=TestAccCloudFormationStack_ -timeout 180m
=== RUN TestAccCloudFormationStack_basic
=== PAUSE TestAccCloudFormationStack_basic
=== RUN TestAccCloudFormationStack_CreationFailure_doNothing
=== PAUSE TestAccCloudFormationStack_CreationFailure_doNothing
=== RUN TestAccCloudFormationStack_CreationFailure_delete
=== PAUSE TestAccCloudFormationStack_CreationFailure_delete
=== RUN TestAccCloudFormationStack_CreationFailure_rollback
=== PAUSE TestAccCloudFormationStack_CreationFailure_rollback
=== RUN TestAccCloudFormationStack_updateFailure
=== PAUSE TestAccCloudFormationStack_updateFailure
=== RUN TestAccCloudFormationStack_disappears
=== PAUSE TestAccCloudFormationStack_disappears
=== RUN TestAccCloudFormationStack_yaml
=== PAUSE TestAccCloudFormationStack_yaml
=== RUN TestAccCloudFormationStack_defaultParams
=== PAUSE TestAccCloudFormationStack_defaultParams
=== RUN TestAccCloudFormationStack_allAttributes
=== PAUSE TestAccCloudFormationStack_allAttributes
=== RUN TestAccCloudFormationStack_withParams
=== PAUSE TestAccCloudFormationStack_withParams
=== RUN TestAccCloudFormationStack_WithURL_withParams
=== PAUSE TestAccCloudFormationStack_WithURL_withParams
=== RUN TestAccCloudFormationStack_WithURLWithParams_withYAML
=== PAUSE TestAccCloudFormationStack_WithURLWithParams_withYAML
=== RUN TestAccCloudFormationStack_WithURLWithParams_noUpdate
=== PAUSE TestAccCloudFormationStack_WithURLWithParams_noUpdate
=== RUN TestAccCloudFormationStack_withTransform
=== PAUSE TestAccCloudFormationStack_withTransform
=== RUN TestAccCloudFormationStack_onFailure
=== PAUSE TestAccCloudFormationStack_onFailure
=== RUN TestAccCloudFormationStack_outputsUpdated
=== PAUSE TestAccCloudFormationStack_outputsUpdated
=== RUN TestAccCloudFormationStack_templateUpdate
=== PAUSE TestAccCloudFormationStack_templateUpdate
=== CONT TestAccCloudFormationStack_basic
=== CONT TestAccCloudFormationStack_withParams
=== CONT TestAccCloudFormationStack_disappears
--- PASS: TestAccCloudFormationStack_disappears (51.25s)
=== CONT TestAccCloudFormationStack_CreationFailure_rollback
--- PASS: TestAccCloudFormationStack_basic (69.89s)
=== CONT TestAccCloudFormationStack_updateFailure
--- PASS: TestAccCloudFormationStack_withParams (101.29s)
=== CONT TestAccCloudFormationStack_defaultParams
--- PASS: TestAccCloudFormationStack_updateFailure (68.68s)
=== CONT TestAccCloudFormationStack_allAttributes
--- PASS: TestAccCloudFormationStack_defaultParams (101.48s)
=== CONT TestAccCloudFormationStack_CreationFailure_delete
--- PASS: TestAccCloudFormationStack_allAttributes (72.03s)
=== CONT TestAccCloudFormationStack_yaml
--- PASS: TestAccCloudFormationStack_CreationFailure_rollback (173.94s)
=== CONT TestAccCloudFormationStack_CreationFailure_doNothing
--- PASS: TestAccCloudFormationStack_yaml (53.13s)
=== CONT TestAccCloudFormationStack_withTransform
--- PASS: TestAccCloudFormationStack_withTransform (55.68s)
=== CONT TestAccCloudFormationStack_templateUpdate
--- PASS: TestAccCloudFormationStack_CreationFailure_delete (163.41s)
=== CONT TestAccCloudFormationStack_outputsUpdated
--- PASS: TestAccCloudFormationStack_templateUpdate (75.34s)
=== CONT TestAccCloudFormationStack_onFailure
--- PASS: TestAccCloudFormationStack_CreationFailure_doNothing (172.75s)
=== CONT TestAccCloudFormationStack_WithURLWithParams_withYAML
--- PASS: TestAccCloudFormationStack_outputsUpdated (77.20s)
=== CONT TestAccCloudFormationStack_WithURLWithParams_noUpdate
--- PASS: TestAccCloudFormationStack_onFailure (64.18s)
=== CONT TestAccCloudFormationStack_WithURL_withParams
--- PASS: TestAccCloudFormationStack_WithURLWithParams_withYAML (68.35s)
--- PASS: TestAccCloudFormationStack_WithURLWithParams_noUpdate (93.75s)
--- PASS: TestAccCloudFormationStack_WithURL_withParams (115.71s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/cloudformation 580.335s
This functionality has been released in v5.13.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Description
When the output values of an
aws_cloudformation_stack
change, theoutputs
attribute is not correctly marked asComputed
, so changes are not picked up by dependent resources or Terraform output values. The values in state are correctly updated.When any configurable, non-
ForceNew
parameters are changed, now marks theoutputs
attribute asComputed
.Relations
Closes #32744
Output from Acceptance Testing