When cdk bootstrapping AWS account A
I am utilizing the --trust
flag for account B
:
CDK_DEFAULT_ACCOUNT=A cdk boostrap --trust B ...
This should allow B to deploy into the A environment.
However, when a code pipeline job (with no ~/.aws
directory and no environment variable credentials) in B is running cdk deploy
against A it errors out with
failed: Error: Need to perform AWS calls for account A, but the current credentials are for B
The execution role for the code pipeline action in account B has admin access.
How is a process in the trusted account credentialed to deploy to the boostrapped account?
There is a similarly titled question which is for a separate topic.
Thank you in advance for your consideration and response.