Skip to content
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

Not using OperationPreferences in StackSet resources in CFN #208

Open
5 tasks
horacix opened this issue Dec 18, 2024 · 1 comment
Open
5 tasks

Not using OperationPreferences in StackSet resources in CFN #208

horacix opened this issue Dec 18, 2024 · 1 comment
Labels

Comments

@horacix
Copy link

horacix commented Dec 18, 2024

Describe the bug

The cloudformation template has parameters to configure operation preferences of the stacksets such as FailureTolerancePercentage and RegionConcurrencyType, but these paramaters are only used in the deployment manager Lambda and are not being used in the StackSet resources described in the same template. We manage hundreds of region/accounts, and stack updates take a long time and if only one region fails to update, the whole update fails and the CFN stack ends up in an invalid state.

To Reproduce

  1. Deploy quota-monitor-hub.template in your org to an OU with more than one Stack Instances.
  2. Update the stack, setting FailureTolerance or MaxConcurrent to a high number, and check that these parameters are not taken into account by the Update operation in the stackset.

Expected behavior

StackSet update operations should consider the Operation Preferences specified as parameters on the stack deployment.

Please complete the following information about the solution:

  • [v6.3.0 ] Version: [e.g. v1.0.0]

To get the version of the solution, you can look at the description of the created CloudFormation stack. For example, "(SOXXXX) - The AWS CloudFormation template for deployment of the AWS Solution. Version vx.y.z". You can also find the version from releases

  • Region: [e.g. us-east-1]
  • Was the solution modified from the version published on this repository?
  • If the answer to the previous question was yes, are the changes available on GitHub?
  • Have you checked your service quotas for the services this solution uses?
  • Were there any errors in the CloudWatch Logs? How to enable debug mode?

Screenshots
If applicable, add screenshots to help explain your problem (please DO NOT include sensitive information).

Additional context
I fixed this locally by adding the OperationPreferences attribute to the StackSet resources in the template, using the same values obtained from the Stack parameters. I can submit a PR with the change if you are interested.

@horacix horacix added the bug label Dec 18, 2024
@G-Lenz
Copy link
Contributor

G-Lenz commented Dec 20, 2024

Thank you for bringing this to our attention. We will investigate this and add it to our backlog.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants