-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
New resource: aws_cloudformaton_stack_instances #36794
New resource: aws_cloudformaton_stack_instances #36794
Conversation
Community NoteVoting for Prioritization
For Submitters
|
83e3aaf
to
e062793
Compare
480435e
to
57864d7
Compare
I did some tests for this version,
|
Good point @agandrabur. Added in the last commit. |
🔴 Flagging this PR as it breaks compatibility buy changing the schema. We can not beak compatibility of existing resources/datasources. |
We can have both |
@alexknez I'm working on this PR, doing the items in the op ☝️ above. Let me know if you are going to work on this so we can coordinate and not overwrite each other. |
Is this still being worked on? Last update was a month ago. |
Any updates here? We are currently using multiple |
@YakDriver is this change still on your radar? |
Hope this will make the cut. |
bd7d073
to
b4b9847
Compare
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 🎉
Regular account:
% make t T=TestAccCloudFormationStackInstances_ K=cloudformation
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.22.6 test ./internal/service/cloudformation/... -v -count 1 -parallel 20 -run='TestAccCloudFormationStackInstances_' -timeout 360m
=== RUN TestAccCloudFormationStackInstances_basic
=== PAUSE TestAccCloudFormationStackInstances_basic
=== RUN TestAccCloudFormationStackInstances_disappears
=== PAUSE TestAccCloudFormationStackInstances_disappears
=== RUN TestAccCloudFormationStackInstances_Disappears_stackSet
=== PAUSE TestAccCloudFormationStackInstances_Disappears_stackSet
=== RUN TestAccCloudFormationStackInstances_Multi_increaseRegions
=== PAUSE TestAccCloudFormationStackInstances_Multi_increaseRegions
=== RUN TestAccCloudFormationStackInstances_Multi_decreaseRegions
=== PAUSE TestAccCloudFormationStackInstances_Multi_decreaseRegions
=== RUN TestAccCloudFormationStackInstances_Multi_swapRegions
=== PAUSE TestAccCloudFormationStackInstances_Multi_swapRegions
=== RUN TestAccCloudFormationStackInstances_parameterOverrides
=== PAUSE TestAccCloudFormationStackInstances_parameterOverrides
=== RUN TestAccCloudFormationStackInstances_deploymentTargets
=== PAUSE TestAccCloudFormationStackInstances_deploymentTargets
=== RUN TestAccCloudFormationStackInstances_DeploymentTargets_emptyOU
=== PAUSE TestAccCloudFormationStackInstances_DeploymentTargets_emptyOU
=== RUN TestAccCloudFormationStackInstances_operationPreferences
=== PAUSE TestAccCloudFormationStackInstances_operationPreferences
=== RUN TestAccCloudFormationStackInstances_concurrencyMode
=== PAUSE TestAccCloudFormationStackInstances_concurrencyMode
=== RUN TestAccCloudFormationStackInstances_delegatedAdministrator
=== PAUSE TestAccCloudFormationStackInstances_delegatedAdministrator
=== CONT TestAccCloudFormationStackInstances_basic
=== CONT TestAccCloudFormationStackInstances_parameterOverrides
=== CONT TestAccCloudFormationStackInstances_operationPreferences
=== CONT TestAccCloudFormationStackInstances_Multi_increaseRegions
=== CONT TestAccCloudFormationStackInstances_delegatedAdministrator
=== CONT TestAccCloudFormationStackInstances_Disappears_stackSet
=== CONT TestAccCloudFormationStackInstances_concurrencyMode
=== CONT TestAccCloudFormationStackInstances_Multi_swapRegions
=== CONT TestAccCloudFormationStackInstances_disappears
=== CONT TestAccCloudFormationStackInstances_Multi_decreaseRegions
=== CONT TestAccCloudFormationStackInstances_DeploymentTargets_emptyOU
=== CONT TestAccCloudFormationStackInstances_deploymentTargets
stack_instances_test.go:321: this AWS account must be the management account of an AWS Organization
--- SKIP: TestAccCloudFormationStackInstances_deploymentTargets (1.71s)
=== NAME TestAccCloudFormationStackInstances_operationPreferences
stack_instances_test.go:416: this AWS account must be the management account of an AWS Organization
--- SKIP: TestAccCloudFormationStackInstances_operationPreferences (1.82s)
=== NAME TestAccCloudFormationStackInstances_delegatedAdministrator
stack_instances_test.go:502: this AWS account must be the management account of an AWS Organization
=== NAME TestAccCloudFormationStackInstances_concurrencyMode
stack_instances_test.go:451: this AWS account must be the management account of an AWS Organization
--- SKIP: TestAccCloudFormationStackInstances_concurrencyMode (11.50s)
--- SKIP: TestAccCloudFormationStackInstances_delegatedAdministrator (12.25s)
=== NAME TestAccCloudFormationStackInstances_DeploymentTargets_emptyOU
stack_instances_test.go:370: this AWS account must be the management account of an AWS Organization
--- SKIP: TestAccCloudFormationStackInstances_DeploymentTargets_emptyOU (12.44s)
--- PASS: TestAccCloudFormationStackInstances_basic (77.51s)
--- PASS: TestAccCloudFormationStackInstances_Disappears_stackSet (81.00s)
--- PASS: TestAccCloudFormationStackInstances_disappears (82.98s)
--- PASS: TestAccCloudFormationStackInstances_Multi_increaseRegions (115.82s)
--- PASS: TestAccCloudFormationStackInstances_Multi_decreaseRegions (116.66s)
--- PASS: TestAccCloudFormationStackInstances_Multi_swapRegions (121.40s)
--- PASS: TestAccCloudFormationStackInstances_parameterOverrides (149.46s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/cloudformation 154.691s
Org account:
% make t T=TestAccCloudFormationStackInstances_ K=cloudformation P=3
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.22.6 test ./internal/service/cloudformation/... -v -count 1 -parallel 3 -run='TestAccCloudFormationStackInstances_' -timeout 360m
=== RUN TestAccCloudFormationStackInstances_basic
=== PAUSE TestAccCloudFormationStackInstances_basic
=== RUN TestAccCloudFormationStackInstances_disappears
=== PAUSE TestAccCloudFormationStackInstances_disappears
=== RUN TestAccCloudFormationStackInstances_Disappears_stackSet
=== PAUSE TestAccCloudFormationStackInstances_Disappears_stackSet
=== RUN TestAccCloudFormationStackInstances_Multi_increaseRegions
=== PAUSE TestAccCloudFormationStackInstances_Multi_increaseRegions
=== RUN TestAccCloudFormationStackInstances_Multi_decreaseRegions
=== PAUSE TestAccCloudFormationStackInstances_Multi_decreaseRegions
=== RUN TestAccCloudFormationStackInstances_Multi_swapRegions
=== PAUSE TestAccCloudFormationStackInstances_Multi_swapRegions
=== RUN TestAccCloudFormationStackInstances_parameterOverrides
=== PAUSE TestAccCloudFormationStackInstances_parameterOverrides
=== RUN TestAccCloudFormationStackInstances_deploymentTargets
=== PAUSE TestAccCloudFormationStackInstances_deploymentTargets
=== RUN TestAccCloudFormationStackInstances_DeploymentTargets_emptyOU
=== PAUSE TestAccCloudFormationStackInstances_DeploymentTargets_emptyOU
=== RUN TestAccCloudFormationStackInstances_operationPreferences
=== PAUSE TestAccCloudFormationStackInstances_operationPreferences
=== RUN TestAccCloudFormationStackInstances_concurrencyMode
=== PAUSE TestAccCloudFormationStackInstances_concurrencyMode
=== RUN TestAccCloudFormationStackInstances_delegatedAdministrator
=== PAUSE TestAccCloudFormationStackInstances_delegatedAdministrator
=== CONT TestAccCloudFormationStackInstances_basic
=== CONT TestAccCloudFormationStackInstances_parameterOverrides
=== CONT TestAccCloudFormationStackInstances_operationPreferences
--- PASS: TestAccCloudFormationStackInstances_basic (82.38s)
=== CONT TestAccCloudFormationStackInstances_delegatedAdministrator
stack_instances_test.go:488: this AWS account must not be the management account of an AWS Organization
--- SKIP: TestAccCloudFormationStackInstances_delegatedAdministrator (1.20s)
=== CONT TestAccCloudFormationStackInstances_Multi_increaseRegions
--- PASS: TestAccCloudFormationStackInstances_operationPreferences (136.01s)
=== CONT TestAccCloudFormationStackInstances_Multi_swapRegions
--- PASS: TestAccCloudFormationStackInstances_parameterOverrides (153.74s)
=== CONT TestAccCloudFormationStackInstances_Multi_decreaseRegions
--- PASS: TestAccCloudFormationStackInstances_Multi_increaseRegions (111.55s)
=== CONT TestAccCloudFormationStackInstances_DeploymentTargets_emptyOU
--- PASS: TestAccCloudFormationStackInstances_Multi_swapRegions (114.01s)
=== CONT TestAccCloudFormationStackInstances_concurrencyMode
--- PASS: TestAccCloudFormationStackInstances_DeploymentTargets_emptyOU (70.74s)
=== CONT TestAccCloudFormationStackInstances_disappears
--- PASS: TestAccCloudFormationStackInstances_Multi_decreaseRegions (112.24s)
=== CONT TestAccCloudFormationStackInstances_deploymentTargets
--- PASS: TestAccCloudFormationStackInstances_concurrencyMode (82.23s)
=== CONT TestAccCloudFormationStackInstances_Disappears_stackSet
--- PASS: TestAccCloudFormationStackInstances_disappears (83.00s)
--- PASS: TestAccCloudFormationStackInstances_deploymentTargets (96.68s)
--- PASS: TestAccCloudFormationStackInstances_Disappears_stackSet (71.95s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/cloudformation 409.239s
Sorry for the delays on this new resource! |
This functionality has been released in v5.67.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
Introduces
regions
parameter (List of strings) as a list of regions where stack set instance should be created instead ofregion
.aws_cloudformation_stack_set_instance
toaws_cloudformation_stack_instances
aws_cloudformation_stack_instances
to AWS SDK v2Create Sweeper that will work for multi-region, multi-account(Not urgent since sweeping the stack set removes the stack instances)Add state move functionality(Requires framework, this resource is plugin SDK v2)Relations
Closes #24752
References
Output from Acceptance Testing
In organization account: