My Current Project Setup
Currently, I am working on a TypeScript CDK project that deploys multiple lambdas to AWS using a CDK pipeline.
For testing purposes, I have integrated aws-cdk-local and localstack into my workflow. This allows me to run tests in a CodeBuild action within the CDK pipeline. The goal is to create a local DynamoDB stack for testing against before deploying the actual stack.
The Issue I Am Facing
While everything runs smoothly on my personal computer, I encountered an error in CodeBuild when executing cdklocal bootstrap
and cdklocal deploy
.
The Environment aws://000000000000/ap-southeast-1 failed bootstrapping: Error: Need to perform AWS calls for account 000000000000, but no credentials have been configured.
I even attempted setting mock credentials as shown in this screenshot, without much success.
Could it be that I overlooked something crucial?
Has anyone else managed to successfully run cdklocal
from within AWS CodeBuild?
Thank you for any input or suggestions :)
For those interested, here is the link to my code repository here