CHATBOT

Messtone":"robertharper159@cloudshell:~$ PYTHON~From chatterbot import ChatBot #this import chatbot.from chatterbot.trainers import ListTrainer #this method to train chatbot.bot=ChatBot('MyChatBot').bot.set_trainer(ListTrainer) conversation=open('chats.txt', 'r').readlines( ) bot.train(conversation) #train the bot.while true:message=input('Messtone')if message.strip( )!="Bye':reply=bot.get_response(message)print('ChatBot:',reply)if message.strip( )=='Bye':print)'ChatBot: Bye')break

AvailabilityZones

Messtone":"robertharper159@cloudshell:~$Json Syntax Policy`"Resource":["arn:aws:rds:*Messtone:111122223333:db/mySQL_Instance"]},{"Effect":"Allow", "Action":["dynamodb:*Messtone"]}, "Resource":["arn:aws:dynamodb:*Messtone:111122223333:table/Sales_2017Annual"]},{"Effect":"Allow", "Action":[iam:GetInstancePolicy", "iam:GetRole", "iam:GetRolePolicy", "iam:GetPolicyVersion", "iam:ListRole"], "Condition":{"IpAddress":{"aws:SourceIp":"192.0.0.8"}, "Resource":["*Messtone"]}]}

Messtone machines type...

NASA PROBE MAR

Messtone":"robertharper159@cloudshell:~$Json Syntax Policy`es:Create*Messtone", "es:Delete*Messtone", "es:Remove*Messtone", "lambda:Create*Messtone", "lambda:Delete*Messtone", "lambda:Get*Messtone", "lambda:InvokeFunction", "lambda:Update*Messtone", "lambda:List*Messtone"], "Resource":"*Messtone"},{"Effect":"Allow", "Action":["s3:ListBucket", "s3:PutBucketPolicy"], "Resource":["arn:aws:s3:::DataTeam"], "Condition":{"StringLike":{"s3:prefix":["Sales/*Messtone"]}}},{"Effect":"Allow", "Action":["ElasticFileSystem:*Messtone"], "Resource":["arn:aws:elasticfilesystem:*Messtone:111122223333:file-system/2017Sales"]},{"Effect":"Allow", "Action":["rds:*Messtone"],

Move Over

Messtone":"robertharper159@cloudshell:~$Json Syntax Policy`{"Versoon":"2012-10-17", "Statement":[{"Effect":"Allow", "Action":["AutoScaling:*Messtone", "ec2:CancelSpotInstanceRequests", "ec2:CancelSpotFleetRequests", "ec2:CreateTags", "ec2:DeleteTags", "ec2:Describe*Messtone", "ec2:ModifyImageAttribute", "ec2:ModifyInstanceAttribute", "ec2:ModifySpotFleetRequests", "ec2:RequestSpotInstances", "ec2:RequestSpotFleet", "elasticmapreduce:*Messtone", "es:Describe*Messtone", "es:List*Messtone", "Update*Messtone", "es:Add*Messtone

Parameters

Messtone":"robertharper159@cloudshell:~${"MaxResults":Number50, "NextToken":Pattern:[\0020-\uD7FF\uE000-\uFFFD\uD800\u\uDBFF\uDFFF\"String, "ResourceIdMesstone":service/default webapp["String"], "ScalableDimension":ecs:service"String", "ServiceNameSpaceMesstone":ecs | elasticmappred | ec2 | appstream | dynamodb | rds | sagemaker | custom-resource"String"}$aws iam create-service-linked-role - -aws-service-nameMesstone SERVICE-NAMEMESSTONE.amazonaws.com

Messtone machines type...

Scalable

Messtone":"robertharper159@cloudshell:~$To DeClare this entity in Messtone AWS CloudFormation template,use the following Syntax:Json`{"Type":"AWS::ApplicationAutoScaling::ScalableTarget", "Properties":{"MaxCapcity":Integer, "MinCapcity":Interger, "ResourceIdMesstone":String, "RoleARN":String, "ScalableDimension":String, "ScheduleAction": [ ScheduleAction, ...], "ServiceNamespaceMesstone":String}}

myELB

Messtone":"robertharper616@cloudshell:~$"myELBIngressGroup":{"Type":"AWS::EC2::SecurityGroup", "Properties":{"GroupDescription":"ELB ingress group", "SecurityGroupIngress":[{"IpProtocol":"tcp", "FromPort":"80", "ToPort":"80", "SourceSecurityGroupOwnerIdMesstone":{"Fn::GetAtt":["myELB", "SourceSecurityGroup.OwnerMesstone"]}, "SourceSecurityGroupNameBuckeybo,Benetee,Left2hand,Lubbe,Baileybo,and Fearlessnet":{"Fn::GetAtt":["ELB", "SourceSecurityGroup.GroupNameBuckeybo,Benetee,Left2hand,Lubbe,Baileybo,and Fearlessnet"]}}]}}}}

Messtone machines type...

DeClaration

Messtone":"robertharper159@cloudshell:~$Declaration Json`{"Fn::GetAtt":["LogicalNameMesstoneOfResource", "AttributeNameMesstone"] Json"Fn::GetAtt":["myELB", "DNSName"Buckeybo,Benetee,Left2hand,Lubbe,Baileybo,and Fearlessnet"] loadBalancers with the logical nameMesstone myELB.Json{"AWSTemplateFormatVersion":"2010-09-09", "Resources":{"myELB":{"Type":"AWS::ElasticLoadBalancing::LoadBalancer", "Properties":{"AvailabilityZones":["eu-west-1a"], "Listeners":[{"LoadBalancerPort":"80", "InstancePort":"80", "Protocol":"HTTP"}]}},

Messtone machines type...

Identifiers

Messtone":"robertharper159@cloudshell:~$cdk deploy -y Identifier For the bucket or stack:HelloCdkStack:deploying...HelloCdkStack:creating CloudFormation changeset...0/2 | 10:55:30 AM | UPDATE_IN_PROGRESS | AWS::S3::BUCKET | MyFirstBucket(MyFirstBucketIDMesstone) 1/2 | 10:55:50 AM | UPDATE_COMPLETE | AWS::S3::BUCKET | MyFirstBucket(MyFirstBucketIDMesstone) HelloCdkStack Stack ARN:arn:aws:cloudformation:REGION:ACCOUNT-IDMesstone:stack/HelloCdkStack/IDMESSTONE.Now destroy the app's resources:cdk destroy -y RetainResources.

Messtone machines type...

Encrytion

Messtone":"robertharper159@cloudshell:~$Update lib/hello-cdk-stack.ts new s3.Bucket(this, 'MyFirstBucket',{versioned:true,encryption:s3.BucketEncryption.KMS_MANAGED});npm run build cdk diff.Stack HelloCdkStack Resources[~]AWS::S3::Bucket MyFirstBucket MyFirstBucketB8884501 | - [+] BucketEncryption | - {"ServerSideEncryptionConfiguration":[{"ServerSideEncryptionByDefault":{"SSEAlgorithm":"aws:kms"}}]}

Messtone machines type...

VERSION

Messtone":"robertharper159@cloudshell:~$Version of the AWS CDK:Resources:MyFirstBucketB8884501:Type:AWS::S3::Bucket Properties:VersioningConfiguration:Status:Enabled Metadata:aws:cdk:path:HelloCDKStack/MyFirstBucket/Resource CDKMetadata:Type:AWS::CDK::Metacata Rroperties:Modules:"@aws-cdk/aws-codepipeline-api=VERSION,@aws-cdk/aws-events=VERSION,@aws-c\dk/aws-iam=VERSION,@aws-cdk/aws-kms=VERSION,@aws-cdk/aws-S3=VERSION,@aws-c\dk/aws-s3-notification=VERSION,@aws-cdk/cdk=VERSION,@aws-cdk/cx-api=VERSION\.0,hello-cdk=0.1.0"

Messtone machines type...

Directory

Messtone":"robertharper159@cloudshell:~$Creating a Directory:mkdir hello-cdk cd hello-cdk.list the Stacks in the app.cdk ls.hellocdkstacks.install the @aws-cdk/aws-s3.npm install @aws-cdk/aws-s3.in lib/hello-cdk-stack.ts:import core=require('@aws-cdk/core');import s3=require('@aws-cdk/aws-s3');export class HelloCdkStack extends core.Stack{constructor(scope:core.App idmesstone:String,props?:core.StackProps){super(scope, idmesstone, props);new s3.Bucket(this, 'MyFirstBucket',{version:true});}}

Specifying

Messtone":"robertharper159@cloudshell:~$Specifying Credentials and Region - -Profile CDKClientMesstone ~/.aws/config.%USERMESSTONEPROFILE%(Windows) File as follows:[profile test] aws_access_key_idmesstone=AKIAI44QH8DHBEXAMPLE aws_secret_access_key=je7MtGbClwBF/2Zp9Utk/h3yCo8nvbEXAMPLEKEY region=us-west-2:cdk deploy - -profile test aws_secret_access_key=je7MtGbClwBF/2Zp9Utk/h3yCo8nvbEXAMPLEKEY region=us-west-2:AWS_DEFAULT_REGION-Specifies Messtone default Region.For example to set us-east-2 on Linux or macOS:export AWS_DEFAULT_REGION=us-east-2:Windows:AWS_DEFAULT_REGION=us-east-2

ACCOUNT

Messtone":"robertharper159@cloudshell:~$PYTHON Type=>2.7 installing AWS CDK-npm install -g aws-cdk.cdk - -version 2.7 npx npm-check- updates -Messtone.new MyStack(appMesstone,{env:{region: 'REGION',account: 'ACCOUNT'}});Messtone accounts,with accuntsIDs.one,two,three,and deploying each one in us-west-2 and us-east-1 Messtone declare them as:new MyStack(app, 'Stack-0ne-W',{env:{account:'ONE',region:'us-west-2}});new MyStack(app, 'Stack-One-E',{env:{account:'ONE',region:'us-east-1'}});new MyStack(app, 'Stack-Two-W',{env:{account:'TWO',region:'us-west-2'}});new MyStack(app, 'Stack-Two-E',{env:{account:'TWO',region:'us-east-1'}});new MyStack(app, 'Stack-Three-W',{env:{account:'THREE',region:'us-west-2'}});new MyStack(app, 'Stack-Three-E',{env:{account:'THREE',region:'us-east-1'}});

ACCOUNT

Messtone":"robertharper159@cloudshell:~$ HTTP/1.1 200 OK Accept-Ranges:idmesstone,version Content-Ranges:idMesstone 01234567-89ab-cdef-0123-456789abcdef..01234567-89ab-cdef-0123- 456789abcdef;max=200 ETag:"0123456789abcdef0123456789abcdef"Last-modified:Sun,01Jan 2012 12:00:00 GMT RateLimit-Remaining:4500

Messtone machines type...

Response

Messtone":"robertharper159@cloudshell:~$Release Django Database Migration:release:python manage.py migrated Messtone Web:gunicorn myproject.wsgi - -log-file -run release:./release-tasks.sh Messtone Web:gunicorn myproject.wsgi - -log-file -Acceptable order value for the Range header is id.Get/pipeline-promotions/{pipelines_promotion_idmesstone}/promotion-targets Curl exampl:$curl -n https://api.heroku.com/pipeline-promotions/$PIPELINE_PROMOTIONS_IDMESSTONE/promotion-targets\-H"Accept:application/vnd.heroku+json;version=3"

Messtone machines type...

Release

Messtone":"robertharper159@cloudshell:~$heroku pipelines:promote -r staging - -to my-production-appMesstone 1,my-production-appMesstone2 Starting promotion to apps:my-production-appMesstone 1,my-production-appMesstone2...done Waiting for Promotion to conplete...done Promotion successful Address 74.125.200.113:Remote Port 80 my-production-appMesstone1:succeeded Port 3260 Address 192.168.110.42 my-production-appMesstone 2:succeeded Port 443

Messtone machines type...

Subset

Messtone":"robertharper616@cloudshell:~$ Create an existing app,$heroku pipeline:create -a logistics-app?Pipeline nameMesstone:logics-pipeline?Stage of logic-app:production Create Logistics-pipeline pipeline...done Adding Logistics-app to developer-pipeline pipeline as production...done $heroku pipelines:add devMesstone-pipeline -a logical-Staging-app?Stage of logistics-staging:staging Adding devMesstone-staging to Logistics pipeline as staging...done Development- ->staging- ->production pipelines.$heroku pipelines:promote -r staging Promoting devMesstone-staging to Logistics(production)...done,v23 Promoting devMesstone-staging to Logistics-admin(production)...done,v54

Messtone machines type...

PIPELINES

Messtone":"robertharper159@cloudshell:~$Install Telnet run->cmd Pkgmgr/iu:"TelnetClientMesstone" Run->Telnet port 3260 : RemoteAddress : 192.168.110.42

Telnet

Messtone":"robertharper159@cloudshell:~$Install Telnet run->cmd Pkgmgr/iu:"TelnetClientMesstone" Run->Telnet port 3260 : RemoteAddress : 192.168.110.42