DEV Community

Discussion on: Canary deployment of Lambdas using CDK Pipelines

Collapse
 
grenguar profile image
Igor Soroka

Thanks for the article!

How have you done cdk deploy? For me CloudFormation deployment stage is failing because it cannot create Lambda roles. How have you done the cdk bootstrap?

Collapse
 
ryands17 profile image
Ryan Dsouza

Yes cdk boostrap is required before you deploy the app. I ran this in the following manner:

npx cdk bootstrap aws://1234567890/us-east-1
Enter fullscreen mode Exit fullscreen mode
Collapse
 
grenguar profile image
Igor Soroka

I think it should be done like that. Also old CDKToolkit should be deleted

npx cdk bootstrap aws://<account>/eu-west-1 --profile <profile> \
    --cloudformation-execution-policies arn:aws:iam::aws:policy/AdministratorAccess \
    aws://<account>/<region>
Enter fullscreen mode Exit fullscreen mode
Thread Thread
 
ryands17 profile image
Ryan Dsouza

What profile are you using? This wasn't needed in my case as I am already using the new style of synthesis as shown here.