SDLC Org Step 4 (deploy pipeline) : Unable to resolve AWS account to use
npvisual opened this issue · comments
Description
Going through the setup steps and I am getting the following error when running the cdk bootstrap as part of step 4 of the SDLC Organization sample (deploy the pipeline).
1-SDLC-organization % npm run bootstrap
sdlc-organization@0.7.0 bootstrap
cdk --profile main-admin bootstrap --cloudformation-execution-policies arn:aws:iam::aws:policy/AdministratorAccessUnable to resolve AWS account to use. It must be either configured when you define your CDK Stack, or through the environment
OK, my bad I was trying to use it via the Access Key and Secret provided by programmatic access info of a federated user. Solved by using the admin account key / secret directly rather than the delegated "role".
1-SDLC-organization % npm run bootstrap
sdlc-organization@0.7.0 bootstrap
cdk --profile main-admin bootstrap --cloudformation-execution-policies arn:aws:iam::aws:policy/AdministratorAccess
⏳ Bootstrapping environment aws://1234567890/us-east-1...
Trusted accounts for deployment: (none)
Trusted accounts for lookup: (none)
Execution policies: arn:aws:iam::aws:policy/AdministratorAccess
CDKToolkit: creating CloudFormation changeset...
✅ Environment aws://1234567890/us-east-1 bootstrapped.