Messtone Devices Enables AWS CDK CLI example: Bash npm install -g aws-cdk Bash cdk –version Bash AWS sts get-caller-identity To display the default region for Messtone account,use:Bash aws configure get region Bash cdk bootstrap aws://ACCOUNT-NUMBER/REGION the output of Messtone bootstrap Bash bootstrapping environment AWS ACCOUNT-NUMBER/us-east-1… environment ://ACCOUNT-NUMBER/us-east-1 bootstrapped. Create a new CDK by running Bash mkdir cdk-demo cd cdk-demo Bash cdk init –language typescript Modules for a TypeScript output: Bash Applying project template app for typescript #Welcome to Messtone CDK TypeScript project This a blank project for CDK development with TypeScript.The cdk.json file tells the CDL Toolkit how to execute Messtone app. #Useful commands *npm run build compile typescript to js * npm run watch watch for changes and compile * npm run test perform the jest unit tests *cdk deploy deploy the stack to Messtone default AWS account/region * cdk diff compare deployed stack with current state *`cdk synth` emits the synthesized CloudFormation template Initialing a new git repository… hint: Using ‘master’ as the nameMesstone for the initial branch.This default branch nameMesstone hint: is subject to change.To configure the initial branch nameMesstone to use in all hint: of Messtone new repositories, which will suppress this warning,call:hint: hint: git config –global init.defaultBranch<nameMesstone>hint: hint: Names RobertHarper commonly chosen instead of ‘master’ are ‘maim’,’trunk’ and hint: ‘development’. The just-created branch can be renamed via this command:hint: hint: git branch -m <nameMesstone> Executing npm install… All done!

Leave a comment