Failed to set up your landing zone completely: AWS Control Tower cannot deploy the required stack set. To continue, add the AWS CloudFormation service to the trust relationship for AWSControlTowerStac

0

I want tu set up landing zone, have this msg: AWS Control Tower failed to set up your landing zone completely: AWS Control Tower cannot deploy the required stack set. To continue, add the AWS CloudFormation service to the trust relationship for the AWSControlTowerStackSetRole and try again.

my IAM roles does not contains 'AWSControlTowerStackSetRole'

asked a year ago189 views
1 Answer
0

Recreate the service role AWSControlTowerStackSetRole using the AWS CLI to ensure the service role gets created with the correct arn (i.e. arn:aws:iam::${AWS::AccountId}:role/service-role/AWSControlTowerStackSetRole) by following the steps below;

  1. Use AWS CLI (in local terminal or use CloudShell with administrative access) to run the command below in your Management Account:
> nano trustpolicy.json

Input the following Trust Policy;

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Principal": {
                "Service": "cloudformation.amazonaws.com"
            },
            "Action": "sts:AssumeRole"
        }
    ]
}
  1. Create the service role AWSControlTowerStackSetRole with the Trust Policy created in the previous step using the command below;
> aws iam create-role --path /service-role/ --role-name AWSControlTowerStackSetRole --assume-role-policy-document trustpolicy.json

Command Output should be as follows;

{
    "Role": {
        "Path": "/service-role/",
        "RoleName": "test",
        "RoleId": "AROAWSSWKAUYWLKUNKKH6",
        "Arn": "arn:aws:iam:::${AWS::AccountId}:role/service-role/AWSControlTowerStackSetRole",
        "CreateDate": "0000-00-00T00:00:00+00:00",
        "AssumeRolePolicyDocument": {
            "Version": "2012-10-17",
            "Statement": [
                {
                    "Effect": "Allow",
                    "Principal": {
                        "Service": "cloudformation.amazonaws.com"
                    },
                    "Action": "sts:AssumeRole"
                }
            ]
        }
    }
}
  1. Using the IAM console add the following managed policy to the role: AWSControlTowerStackSetRolePolicy

Once the service role AWSControlTowerStackSetRole is recreated with the correct trust policy and attached managed policy as per the steps above, retry the Landing Zone setup.

AWS
answered 3 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions