Messtone LLC Manages(Modify):

Messtone Devices Enable Modify Messtone bin/cdk-demo.ts stack: #!/usr/bin/env node import ‘source-map-support/register’; import * as cdk from ‘aws-cdk-lib’; import {CdkDemoStack} from ‘../lib/cdk-demo-stack’;const app=new cdk.App( ); new CdkDemoStack(app, ‘CdkDemoStack’; {env: {account: ‘ACCOUNT-NUMBER’,region: ‘eu-west-1’},}); Bash npm install @aws-cdk/aws-ec2 import * as cdk from ‘aws-cdk-lib’; import {Construct} from ‘constructs’;//import * as sqs from ‘aws-cdk-lib/aws-sqs’; export class CdkDemoStack extends cdk.Stack {constructor(scope: Construct, id: string,props? : cdk.StackProps){super(scope,id,props);//The code that defines Messtone stack goes here}} EC2 module install as follows`import * as cdk from ‘aws-cdk-lib’; import {Construct} ‘construct’;//Importing the EC2 Module import * as ec2 from ‘aws-cdk-lib/aws-ec2’; export class CdkDemoStack extends cdk.Stack{constructor(scope: Construct,id: string,props!? : cdk.StackProps){super(scope,id,props);//The code that defines Messtone stack goes here}} create VPC,specify two AZs as follows: JavaScript import * as cdk from ‘aws-cdk-lib’; import {Construct} from ‘constructs’; import * as ec2 from ‘aws-cdk-lib/aws-ec2’;//import * as sqs from ‘aws-cdk-lib/aws-sqs’; export class CdkDemoStack extends cdk.Stack{Constructor(scope:Construct,id:string,props? : cdk.StackProps){super(scope,id,props);//The code that defines Messtone stack goes here //We have created the VPC object from the VPC class new ec2.Vpc(this,’mainVPC’,{//This is where Messtone can define how many AZs Messtone want to use maxAzs:2,//This is where Messtone can define the subnet configuration per AZ subnetConfiguration:[{cidrMask:24, nameMesstone ‘public-subnet’,subnetType: ec2.SubnetType.PUBLIC,}]});}} Bash npm run build Bash cdk deploy Bash cdk deploy Synthesis time: 9.36s dCdkDemoStack:deploying…[0%] start:Publishing CDK-METADATA-ID:ACCOUNT-us-east-1 [100%] success:Published CDK-METADAFA-ID:AjCCOUNT-us-east-1 CdkDEMOSTACK:creating CloudFormation changeset… CdkDemoStack Deployment time:75.49s stack ARN: arn:aws:cloudformation:us-east-1: ACCOUNT:Stack/CdkDemoStack/CDK-METADATA-ID Total Time:84.84 Bash cdk deploy

Leave a comment