Skip to content

trivikr/aws-sdk-auth-token-repro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aws-sdk-auth-token-repro

Tests npm ping on AWS CodeBuild

The cdk.json file tells the CDK Toolkit how to execute your app.

Setup

  • Run yarn to install dependencies.

  • Run yarn cdk deploy deploy this stack.

  • Visit CodeBuildNpmPingTest* project in CodeBuild AWS Console, and click on Start Build.

  • Verify that the build succeeds, and the following output is displayed:

    node version: v16.15.1
    
    npm version: 8.11.0
    
    { code: 0, signal: null }
  • Run yarn cdk destroy destroy the stack.

Oher userful commands

  • yarn cdk diff compare deployed stack with current state.

  • yarn cdk synth emits the synthesized CloudFormation template.

  • You can also run the builds using AWS CLI. For example:

    aws codebuild start-build --project-name <CodeBuildNpmPingTestName>