aws-samples / aws-cudos-framework-deployment

Command Line Interface tool for Cloud Intelligence Dashboards deployment
https://catalog.workshops.aws/awscid
MIT No Attribution
408 stars 164 forks source link

Embedded stack arn:aws:cloudformation #516

Closed 10shweta closed 1 year ago

10shweta commented 1 year ago

Hi Team,

We are deploying Compute optimiser dashboard, While running Cloud formation template on Data Collection account getting below error :

Embedded stack arn:aws:cloudformation:ap-south-1:xxxxxx:stack/OptimizationDataCollectionStack1-ComputeOptimizerModule-xxxxxx was not successfully created: The following resource(s) failed to create: [ReplicaitonBucketsStackSet].

_Creating using the following stack https://wellarchitectedlabs.com/cost/300_labs/300_optimization_data_collection/2_deploy_main_resources/_

Stack and Stackset created on Management ran successfully, without any issue.

Can you please suggest what can be the probable issue

Thanks Shweta

iakov-aws commented 1 year ago

can you check in the deleted stacks in cloud formation the stack that starts with "StackSet-" and check the failure reason?

Most probably, you need to add another exception in your SCP

There are 2 roles involved:

  1. https://github.com/awslabs/aws-well-architected-labs/blob/master/static/Cost/300_Optimization_Data_Collection/Code/module-compute-optimizer.yaml#L132
  2. https://github.com/awslabs/aws-well-architected-labs/blob/master/static/Cost/300_Optimization_Data_Collection/Code/module-compute-optimizer.yaml#L86
iakov-aws commented 1 year ago

Hello Shweta, were you able to allow these roles and deploy the stack?

iakov-aws commented 1 year ago

Please comment / reopen if still an issue