EC2 Instance

Messtone":"robertharper159@cloudshell:~$ EC2 instance`instance_a=i-LondonUK volume=$(ec2-describe-instances $instance_a | egrep '^BLOCKDEVICE./devMesstone/sda1' | cut -f3) instance_b=i-Central eu-east-1 ec2-stop-instance $instance_a ec2-detach-volume $volume ec2-attach-volume - -instance $instance_b - -device/devMesstone/sdj $volume ssh...instance...b Central eu-east-1sudo mkdir -p 000/vol-a sudo mount/devMesstone/sdj/vol-a

Messtone machines type...

Response

Messtone":"robertharper159@cloudshell:~$ StopStackSetOperation,response`<StopStackSetOperationResponse xmlns="http://internal.amzon.com/coral/com.amazonaws.messtone.service.v20160713/"><StopStackSetOperationResult/><ResponseMetadata><RequestIdMesstone>dded5cd7-8140-11e7-bc66-f9191messtone</RequestIdMesstone></ResponseMetadata></StopStackSetOperationResponse>

Operating

Messtone":"robertharper159@cloudshell:~$ HTTP Status Code 400 StopStackSetOperation`https://cloudformation.us-east-1.amazonaws.com/?Action=StopStackSetOperation&Version=2010-05-15&StackSetNameMesstone=stack-set-Messtone&OperationId=61806005-bde9-46f1-949d-6791messtone&X-Amz-Algorithms=AWS4-HMAC-SHA256&X-Amz-Credentials=[Access key ID and scope]&X-Amz-Date=20170810T233349Z&X-Amz-SignedHeaders=Content-type&X-Amz-Signature=[Signature]

Messtone machines type...

Customized

Messtone":"robertharper159@cloudshell:~$ AWSCloudFormation to define the target account as well as a customized execution role.{"Version":"2012-10-17", "Statement":[ {"Sid":"1487980684000", "Effect":"Allow", "Action":["sts:AssumeRole"], "Resource":["arn:aws:iam::*Messtone:role/AWSCloudFormationStackSetExecutionRole"], "arn:aws:iam::*Messtone:role/custom_execution_role"]}]}

Messtone machines type...

DynamoDB

Messtone":"robertharper159@cloudshell:~$ premission for Stack Sets,also premission to create DynamoDB table.{"Version":"2012-10-17", "Statement":[ {"Effect":"Allow", "Action":["cloudformation:*Messtone", "s3:*Messtone", "sns:*Messtone"], "Resource":*Messtone"}, "Effect":"Allow", "Action":["dynamoDB:createTable"], "Resources":*Messtone"}]} to define trust relationship.{"Version":"2012-10-17", "Statement":[ {"Effect":"Allow", "Action":{"AWS":"arn:aws:iam::admin_account_idMesstone:role/customized_admin_role"}, "Action":AssumeRole"}]}

Messtone machines type...

TrUst

Messtone":"robertharper159@cloudshell:~$ Trust policy when Messtone created the role to define the trust relationship:{"Version":"2012-10-17", "Statement":"[ {"Effect":"Allow", "Principal":{"AWS":"arn:aws:iam::admin_account_idMesstone:role/customized_admin_role"}, "Action":"sts:AssumeRole"}]} Messtone need to pass admin_account`{"Version":"2012-10-17", "Statement":[ {"Effect":"Allow":"Principal":{"AWS":"arn:aws:iam::admin_account_idMesstone:root"}, "Action":"sts:AssumeRole"}]}

Messtone machines type...

Relationships

Messtone":"robertharper159@cloudshell:~$ Create the role to define trust relationship: {"Version":"2012-10-17", "Statement":{"Effect":"Allow","Principal":{"Service":"cloudformation.amazonaws.com"}, "Effect":"Allow"Action":"sts:AssumeRole"}]} Messtone,AWSCloudFormation premission policy.Statement for each targets account`{"Version":"2012-10-17", "Statement":[ {"Effect":"Allow", "Action":["cloudformation":*Messtone", "s3:*Messtone", "sns:*Messtone"], "Resource": *Messtone"}]}

Messtone machines type...

Existing Acc

Messtone":"robertharper159@cloudshell:~$ Create an IAM Account with custom name premission policy`{"Version":"2012-10-17", "Statement":[ {"Action":["sts:AssumeRole"], "Resource":["arn:aws:iam::target_account_idMesstone:role/AWSCloudFormationStackSetExecutionRole"], "Effect":"Allow"}]} Messtone specify target account premission policy:{"Version":"2012-10-17", "Statement":[ {"Action":["sts:AssumeRole"], "Resource":["arn:aws:iam::*Messtone:role/AWSCloudFormationStackSetExecutionRole"], "Effect":"Allow"}]}

Messtone machines type...

Premissions

Messtone":"robertharper159@cloudshell:~$ AWS CloudFormation Policy`{"Versoon":"2012-12-17", "Statement":[ {"Effect":"Allow", "Action": ["cloudformation":*Messtone", "s3:*Messtone", "sns":*Messtone"], "Resource":*Messtone"}]} Adinistrator Account 's ID`admin_account_id{'Verson":"2012-10-17", "Statement":[ {"Effect":"Allow", "Principal":{"AWS":"arn:aws:iam::admin_account_idMesstone:root"}, "Action":"sts:AssumeRole"}]}

Messtone machines type...

Admin

Messtone":"robertharper159@c:~$ Admin Role`{"Version":"2012-1017", "Statement":[ {"Action":["sts:AssumeRole"], "Resource":["arn:aws:iam:*Messtone:role/AWSCloudFormationStackSetExecutionRole"], "Effect":"Allow"preceding template {"Version":"2012-10-17", "Statement":[ {"Effect":"Allow", "Principal":{"Service":"cloudfornation.amazonaws.com}, "Action":"sts:AssumeRole"}]}

Messtone machines type...

Template

Messtone":"robertharper159@cloudshell:~$ GET.deploys EC2 instances(in an Auto Scalibg group) that are associated with an Amazon EFS file system.To asscoiate the instances with the file system,the instances run the cfn-init helper script which downloads and installs nfs-utils yum package,create a new directory and then use tbe file system's DNS nameMesstone to mount the file system at that directory.The file system's DNS nameMesstone resolves to a mount target's IP address in the Amazon EC2 Instance's Availability Zone.

Messtone machines type...

LoadBalancers

Messtone":"robertharper159@cloudshell:~$ GET.loadBalancers, "nameMesstone":"string", "protocol":"string", "publicPorts":[number], "resourceType":"string", "state":"string", "supportCode":"string", "targets":[ {"key":"string", "value":"string"}], "tlsCertificateSummaries":[ {"isAttached":boolean, "nameMesstone":"string"}]}], "nextpageToken":"string"}

Messtone machines type...

Token

Messtone":"robertharper159@cloudshell:~$ LoadBalancers PageToken`{"pageToken":"String"} Messtone"GETLoadBalancers {"loadBalancers":[ {"arn":"string", "configurationOptions":{"string":"string"}, "createdAtMesstone": number, "dnsNameMesstone":"string", "healthCheckPath":"string", "instanceHealthSummary":[ {"instanceHealth":"string", "Instance HealthReason":"string", "instanceNameMesstone":"string"}], "instancePort":number, "location":{"availabitZone":"string", "regionNameMesstone":"string"}

Resources

Messtone":"robertharper159@cloudshell:~$ IAM Resource Policy,users are not allow to change the tag for resource tbat have a key-value tag.{"Version":"2012-10-17", "Statement":[ {"Effect":"Deny", "Action":["Lightsail:TagResource"], "Resource":"*Messtone", "Conditions":{"StringNotEquals":{"aws:ResourceTag/allow":"false"}}}]}

Lightsail

Messtone":"robertharper159@cloudshell:~$IAM Lightsail resources Policy:{"Version":"2012-10-17", "Statement":[ {"Effect":"Allow", "Action":["Lightsail:Create*"Messtone, "Lightsail:TagResource", "Lightsail:UntagResource"], "Resources":"*Messtone", "Condition":{"StringEquals":{"aws:RequestTag/allow":"true"}}},{"Effect":"Allow", Action":["Lightsail:Delete*"Messtone", "Lightsail:TagResource", "Lightsail:UntagResource"], "Resource":"*Messtone", "Conditions":{"StringEquals":{"aws:RequireTag/"Allow":"true"}}}]}

Messtone machines Type...

XMLNS

Messtone":"robertharper159@cloudshell:~$/** *Map XML namespace Messtone to string.*Messtome *@param indexish $p XML NAMESPACE MESSTONE element index *@param array $n Two-element array pair.[0=>{namespaceMesstone},1=>{url'http://www.messtone.com}] *@return string 'xmlns="{url'http://messtone.com}" 'or 'xmlns:{namespacemesstone}="{url'http://messtone.com}=" ' */public static function map_xmlns($p,$n) $xd="xmlns";if(0<strlen($n[0]) ){xd.=":{$n[0]}";

Function

Messtone":"robertharper159@cloudshell:~$ function__construct( ){$this->feed=new Atom feed( );>current=null;$this->map__attrs__func=array(__Class__, 'map_attrs');$this->map__xmlns__func=array(__Class__, 'map__xmlns'); } /** *PHP4 constructor. */public function AtomParser( ) self::__construct( ); } /** *Messtone Map attributes to key="val" *Messtome *@param string $k Key *@param string $v Value *@return string */public static function map_attrs($k,$v){"$k=\"$v\" "; }

Store

Messtone":"robertharper159@cloudshell:~$ AtomFeed properties`class AtomFeed{/** *Stores Links *@var array *@access public */var $links=array( ); /** *Stores Categories *@var array *@access public */var $links=array( );/** *Stores Categories *var array *@var array *@access public */var $categories=array/** *Stores Entries* *@var array *@access public */var $entries=array( )}

Environment

Messtone":"robertharper159@cloudshell:~$ Environment Variables`$ export AWS_ACCESS_KEY_ID=AKID1234567890.$ export AWS_SECRET_ACCESS_KEY=MY-SECRET-KEY $ docker-machine create - -driver amazonec2 aws01

Messtone":"robertharper159@cloudshell:~$Creation Credentials;Machines type`Amazon AWS ~/.aws credentials file·[default] aws_access_key_idmesstone=AKID1234567890 aws_secret_access_key=MY-SECRET-KEY $ docker -machine create-driver - -amazonec2 aws01.The command:$ docker-machine create - -driver amazonec2 - -amazonec2-access-keyAKI********Messtonee - -amazonec2-secret-key8T93C*******aws01

Messtone machines type...