- Newest
- Most votes
- Most comments
The error you're encountering is related to AWS Regions that are disabled by default. AWS Regions introduced after March 20, 2019 (such as Asia Pacific Hong Kong) require explicit activation before they can be used.
For CloudFormation StackSets to work properly:
- The target account must have the Region enabled
- The StackSet's administrator account (or organization's management account if using service-managed permissions) must also have the same Region enabled
This explains why you're getting the "OptInRequired" error. Even though the process worked previously, it's likely that the current deployment is targeting a Region that hasn't been enabled in the new account.
To address your specific questions:
-
AWS hasn't changed the behavior regarding CloudFormation activation. However, if your StackSet is deploying to a Region that's disabled by default, this would require activation.
-
Yes, root access (or an account with sufficient permissions) is required to enable disabled Regions in the new account.
-
Given your situation, your options are:
- Ask the customer to log in as root to enable the required Region
- If you have delegated administrator privileges, you may be able to enable the Region through Organizations
- Opening an AWS support case could help, especially if you believe there's an inconsistency in behavior
It's worth noting that if you're using service-managed permissions with StackSets, the service doesn't deploy stack instances to the organization's management account, even if that account is in your organization or in an OU in your organization. If you need to deploy to the management account, you would need to either use SELF_MANAGED permissions mode or deploy directly to the management account as a regular CloudFormation stack.
Sources
Management account as a StackSet target | AWS re:Post
Prepare to perform StackSet operations in AWS Regions that are disabled by default - AWS CloudFormation
answered a year ago
Relevant content
asked 10 months ago
