-
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
Feature request: support multiple regions and accounts CloudFormation StackSets #24752
Comments
@justinretzolk I've got a question since you remove the |
Hey @jgrumboe 👋 I appreciate your interest in this one! In this case, my removal of the |
Is there any update about this? |
Is there any update on this? One of the advantages to using stack sets and instances is so that we can parallelize the resource creation across regions. |
Any news on this ? It's a bit problematic for us and we have a few updates upcoming to out stacksets |
is there any updates on this? |
any news on this? we are using a workarround that consist of deploying stacksets on multiple (aws-cli) regions and then import it with the aws_cloudformation_stack_set_instance resource. It does the trick and the stacksets instances are deployed on every region selected but is very annoying... |
Is there any update on this? |
Is there any news on supporting this? It would be awesome if this got implemented 😄 |
I see this is listed as an enhancement however, per documentation below it says for resource aws_cloudformation_stack_set_instance there is operational_preference parameter that allows PARALLEL execution, what is that for ?.. if only one region is allowed. region_concurrency_type - (Optional) The concurrency type of deploying StackSets operations in Regions, could be in parallel or one Region at a time. Valid values are SEQUENTIAL and PARALLEL. |
I still would like to implement this. |
I agree the first option makes most sense to me as well. @jgrumboe how long can this feature take build to be GA? |
@rads18 I can try to build a PR within the following days. I cannot tell if and when it will get merged. |
|
I just started this evening with some tests and recognized that this would be tricky. This definitely requires a lot more thinking than I thought. This is probably a kind of refactoring, which should also take multiple account ids into consideration, as I believe the problem is the same there. |
That's not really the case, multiple accounts are supported with the Although it deploys to multiple accounts and/or regions, it's still a single API call/resource and response. Related FR: #33914 |
@ericofusco i recall seeing that as well however, just to clarify the deployment_targets is capable deploying to multiple accounts but to the same region right?, i ask because I only a single region allowed for the aws_cloudformation_stack_set_instance resource Generally speaking i am a bit lost on the release config for stacksets in Terraform, if its a single region one might as well use a stack |
You're right. But how do you see it's an outdated parameter? Following the link, I still read that DeploymentTargets is a valid request parameter.
Yes, I saw that FR also. Or do I miss something? |
Based on the endpoint you can have multiple Accounts with multiple regions however, the regions selected will apply to all accounts part of the that resource and that makes sense and is in line with how it works in UI as well. If a user need different regions for an account that will be an additional aws_cloudformation_stack_set_instance resource for that account(s). |
Agree, what needs to be done is update the region parameter from string to an array of strings and update the |
@jgrumboe is there any update or progress with this? |
@rads18 Sorry, not yet. I had to focus on other topics. I need some time to think about this here again. I fear there will be some hidden problem with the resource ids, which have the region as part of it. I'd like to avoid changes in the resource id. |
Thats unfortunate there is no one take this on. I am not sure how the community agreed to release Cloudformation stacksets to begin with, without it being able to expand to multiple regions. It totally defeats the main purpose for it. |
Would also like to see this. Having to set 17 different instance resources for all the different regions is functional, yet an annoyance. |
Just pinging if this could be picked up again.. |
@ewbankkit that works but doesn't scale for deployments in a big org, especially creating resources for region specific services like EventBridge - imagine creating EB rules in each and every region for an organization with 1000s of accounts |
To avoid any backwards compatibility issues with the current We would add state move functionality to allow simple migration to the new resource. |
@ewbankkit I agree with moving away from |
Thank you for great PR! I have no concerns. |
Warning This issue has been closed, meaning that any additional comments are hard for our team to see. Please assume that the maintainers will not see them. Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed. |
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 issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
Description
CloudFormation StackSets has options to specify multiple region and accounts.
But,
aws_cloudformation_stack_set_instance
only accept 1 account and 1 region.aws_cloudformation_stack_set_instance
may accept multiple region or accounts.example from docs , cli accept multiple.
This is reference source code
terraform-provider-aws/internal/service/cloudformation/stack_set_instance.go
Line 163 in 3cdebe9
New or Affected Resource(s)
Potential Terraform Configuration
I have 3 ideas.
regions
which accept list of regionsReferences
The text was updated successfully, but these errors were encountered: