aws-cdk-examples icon indicating copy to clipboard operation
aws-cdk-examples copied to clipboard

https://github.com/aws-samples/aws-cdk-examples/tree/master/java/codebuild/project documentation issue

Open nagkumar opened this issue 2 years ago • 2 comments

Describe the bug

To run https://github.com/aws-samples/aws-cdk-examples/tree/master/java/codebuild examples bootstraping should be done in certain way, that command is not present in readme.md

Expected Behavior

command to boot strap this project should be mentioned properly in readme.md

Current Behavior

iac\aws\cdk\java\codebuild\project> cdk bootstrap --trust projectStack --cloudformation-execution-policies arn:aws:iam::aws:policy/AdministratorAccess aws://projectStack/ap-south-1 ⏳ Bootstrapping environment aws://projectStack/ap-south-1... ❌ Environment aws://projectStack/ap-south-1 failed bootstrapping: Error: Need to perform AWS calls for account projectStack, but the current credentials are for 132462119873 at SdkProvider.forEnvironment (d:\Apps\Dev\langs\scripting\js\Node\18.x\18.9.0\node_modules\aws-cdk\lib\api\aws-auth\sdk-provider.ts:184:60) at Function.lookup (d:\Apps\Dev\langs\scripting\js\Node\18.x\18.9.0\node_modules\aws-cdk\lib\api\bootstrap\deploy-bootstrap.ts:31:18) at Bootstrapper.modernBootstrap (d:\Apps\Dev\langs\scripting\js\Node\18.x\18.9.0\node_modules\aws-cdk\lib\api\bootstrap\bootstrap-environment.ts:81:21) at d:\Apps\Dev\langs\scripting\js\Node\18.x\18.9.0\node_modules\aws-cdk\lib\cdk-toolkit.ts:621:24 at async Promise.all (index 0) at CdkToolkit.bootstrap (d:\Apps\Dev\langs\scripting\js\Node\18.x\18.9.0\node_modules\aws-cdk\lib\cdk-toolkit.ts:618:5) at initCommandLine (d:\Apps\Dev\langs\scripting\js\Node\18.x\18.9.0\node_modules\aws-cdk\lib\cli.ts:349:12)

Need to perform AWS calls for account projectStack, but the current credentials are for 132462119873

Reproduction Steps

go to iac\aws\cdk\java\codebuild\project folder and run deploy it gives the above error

Possible Solution

proper documentation in readme.md

Additional Information/Context

No response

CDK CLI Version

'2.43.1'

Framework Version

No response

Node.js Version

18

OS

windows 10

Language

Java

Language Version

jdk18

nagkumar avatar Sep 26 '22 09:09 nagkumar