-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
Create stack set instances using a single operation on the stack set #11380
Comments
An additional idea would be to support Organizational Units as well, as this is being supported in the AWS api as well. |
I would be good with just the organization unit support |
There is way, you can use "for_each" for multiple accounts resource "aws_cloudformation_stack_set_instance" "config_instance"{ |
Hi @abelmokadem 👋 Thank you for taking the time to file this issue! It looks like this functionality was added in the v3.62.0 release of the provider, specifically with this pull request. Can you confirm whether this does indeed resolve the issue you were previously running into? |
Suppporting multiple regions should also be included - through console and API I can add a stack instance to multiple regions, seems that the |
The PR doesn't appear to address the use case of deploying stack sets to multiple accounts that are not neatly grouped under an OU. OU boundaries don't always align with stack deployment needs, so it would be good to be able to specify a simple list of account ID's to deploy the stack to. The for each solution runs the stack instances serially and therefore takes a very long time to complete ( a test run with a single role across eight AWS accounts took over 13 minutes to deploy ) |
To follow up on @Entr04y's comment on how OU boundaries not always aligning with stack deployment needs - I would like to define a locals variable like this
And then deploy into the
Is there any update on this? |
Community Note
Description
Currently there is a
resource_aws_cloudformation_stack_set_instance
resource. The problem with this resource is that it can only create a stack set instance in one account at a time. The next problem is that stack set can only handle one operation at a time. This means that if you need to create 5 stack set instances using the same stack set, that you will have to disable parallelism for your entire terraform project. Or add dependencies between the stack set instances. Both are not desirable, we have over 30 accounts.The AWS API, however, supports multiple account ids when creating stack set instances. I'm a bit confused as to why this was implemented with a single account id and not multiple account ids.
New or Affected Resource(s)
Allow the use of multiple account ids with the
resource_aws_cloudformation_stack_set_instance
resource or create a new resourceresource_aws_cloudformation_stack_set_instances
.Potential Terraform Configuration
References
The text was updated successfully, but these errors were encountered: