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'

posta un anno fa200 visualizzazioni
1 Risposta
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
con risposta 4 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande