-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* release-1.7.20: Bumping version to 1.7.20 Update Changelog with no features add link to lifecycle example new example for aws s3api put-bucket-lifecycle Correct the predefined section name to be plugins new CodeDeploy examples add note to get-object about outfile parameter Fix failing codedeploy tests on windows new cloudformation example new and updated ECS examples updated EC2 examples new and updated IAM examples
- Loading branch information
Showing
46 changed files
with
549 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
**To cancel a stack update that is in progress** | ||
|
||
The following ``cancel-update-stack`` command cancels a stack update on the ``myteststack`` stack:: | ||
|
||
aws cloudformation cancel-update-stack --stack-name myteststack |
11 changes: 11 additions & 0 deletions
11
awscli/examples/deploy/add-tags-to-on-premises-instances.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
**To add tags to on-premises instances** | ||
|
||
This example associates in AWS CodeDeploy the same on-premises instance tag to two on-premises instances. It does not register the on-premises instances with AWS CodeDeploy. | ||
|
||
Command:: | ||
|
||
aws deploy add-tags-to-on-premises-instances --instance-names AssetTag12010298EX AssetTag23121309EX --tags Key=Name,Value=CodeDeployDemo-OnPrem | ||
|
||
Output:: | ||
|
||
This command produces no output. |
38 changes: 38 additions & 0 deletions
38
awscli/examples/deploy/batch-get-on-premises-instances.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
**To get information about one or more on-premises instances** | ||
|
||
This example gets information about two on-premises instances. | ||
|
||
Command:: | ||
|
||
aws deploy batch-get-on-premises-instances --instance-names AssetTag12010298EX AssetTag23121309EX | ||
|
||
Output:: | ||
|
||
{ | ||
"instanceInfos": [ | ||
{ | ||
"iamUserArn": "arn:aws:iam::80398EXAMPLE:user/AWS/CodeDeploy/AssetTag12010298EX", | ||
"tags": [ | ||
{ | ||
"Value": "CodeDeployDemo-OnPrem", | ||
"Key": "Name" | ||
} | ||
], | ||
"instanceName": "AssetTag12010298EX", | ||
"registerTime": 1425579465.228, | ||
"instanceArn": "arn:aws:codedeploy:us-west-2:80398EXAMPLE:instance/AssetTag12010298EX_4IwLNI2Alh" | ||
}, | ||
{ | ||
"iamUserArn": "arn:aws:iam::80398EXAMPLE:user/AWS/CodeDeploy/AssetTag23121309EX", | ||
"tags": [ | ||
{ | ||
"Value": "CodeDeployDemo-OnPrem", | ||
"Key": "Name" | ||
} | ||
], | ||
"instanceName": "AssetTag23121309EX", | ||
"registerTime": 1425595585.988, | ||
"instanceArn": "arn:aws:codedeploy:us-west-2:80398EXAMPLE:instance/AssetTag23121309EX_PomUy64Was" | ||
} | ||
] | ||
} |
11 changes: 11 additions & 0 deletions
11
awscli/examples/deploy/deregister-on-premises-instance.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
**To deregister an on-premises instance** | ||
|
||
This example deregisters an on-premises instance with AWS CodeDeploy, but it does not delete the IAM user associated with the instance, nor does it disassociate in AWS CodeDeploy the on-premises instance tags from the instance. It also does not uninstall the AWS CodeDeploy Agent from the instance nor remove the on-premises configuration file from the instance. | ||
|
||
Command:: | ||
|
||
aws deploy deregister-on-premises-instance --instance-name AssetTag12010298EX | ||
|
||
Output:: | ||
|
||
This command produces no output. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
**To deregister an on-premises instance** | ||
|
||
This example deregisters an on-premises instance with AWS CodeDeploy. It does not delete the IAM user that is associated with the instance. It disassociates in AWS CodeDeploy the on-premises tags from the instance. It does not uninstall the AWS CodeDeploy Agent from the instance nor remove the on-premises configuration file from the instance. | ||
|
||
Command:: | ||
|
||
aws deploy deregister --instance-name AssetTag12010298EX --no-delete-iam-user --region us-west-2 | ||
|
||
Output:: | ||
|
||
Retrieving on-premises instance information... DONE | ||
IamUserArn: arn:aws:iam::80398EXAMPLE:user/AWS/CodeDeploy/AssetTag12010298EX | ||
Tags: Key=Name,Value=CodeDeployDemo-OnPrem | ||
Removing tags from the on-premises instance... DONE | ||
Deregistering the on-premises instance... DONE | ||
Run the following command on the on-premises instance to uninstall the codedeploy-agent: | ||
aws deploy uninstall |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
**To get information about an on-premises instance** | ||
|
||
This example gets information about an on-premises instance. | ||
|
||
Command:: | ||
|
||
aws deploy get-on-premises-instance --instance-name AssetTag12010298EX | ||
|
||
Output:: | ||
|
||
{ | ||
"instanceInfo": { | ||
"iamUserArn": "arn:aws:iam::80398EXAMPLE:user/AWS/CodeDeploy/AssetTag12010298EX", | ||
"tags": [ | ||
{ | ||
"Value": "CodeDeployDemo-OnPrem", | ||
"Key": "Name" | ||
} | ||
], | ||
"instanceName": "AssetTag12010298EX", | ||
"registerTime": 1425579465.228, | ||
"instanceArn": "arn:aws:codedeploy:us-east-1:80398EXAMPLE:instance/AssetTag12010298EX_4IwLNI2Alh" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
**To install an on-premises instance** | ||
|
||
This example copies the on-premises configuration file from the specified location on the instance to the location on the instance that the AWS CodeDeploy Agent expects to find it. It also installs the AWS CodeDeploy Agent on the instance. It does not create any IAM user, nor register the on-premises instance with AWS CodeDeploy, nor associate any on-premises instance tags in AWS CodeDeploy for the instance. | ||
|
||
Command:: | ||
|
||
aws deploy install --override-config --config-file C:\temp\codedeploy.onpremises.yml --region us-west-2 --agent-installer s3://aws-codedeploy-us-west-2/latest/codedeploy-agent.msi | ||
|
||
|
||
Output:: | ||
|
||
Creating the on-premises instance configuration file... DONE | ||
Installing the AWS CodeDeploy Agent... DONE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
**To get information about one or more on-premises instances** | ||
|
||
This example gets a list of available on-premises instance names for instances that are registered in AWS CodeDeploy and also have the specified on-premises instance tag associated in AWS CodeDeploy with the instance. | ||
|
||
Command:: | ||
|
||
aws deploy list-on-premises-instances --registration-status Registered --tag-filters Key=Name,Value=CodeDeployDemo-OnPrem,Type=KEY_AND_VALUE | ||
|
||
Output:: | ||
|
||
{ | ||
"instanceNames": [ | ||
"AssetTag12010298EX" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
**To register an on-premises instance** | ||
|
||
This example registers an on-premises instance with AWS CodeDeploy. It does not create the specified IAM user, nor does it associate in AWS CodeDeploy any on-premises instances tags with the registered instance. | ||
|
||
Command:: | ||
|
||
aws deploy register-on-premises-instance --instance-name AssetTag12010298EX --iam-user-arn arn:aws:iam::80398EXAMPLE:user/CodeDeployDemoUser-OnPrem | ||
|
||
Output:: | ||
|
||
This command produces no output. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
**To register an on-premises instance** | ||
|
||
This example registers an on-premises instance with AWS CodeDeploy, associates in AWS CodeDeploy the specified on-premises instance tag with the registered instance, and creates an on-premises configuration file that can be copied to the instance. It does not create the IAM user, nor does it install the AWS CodeDeploy Agent on the instance. | ||
|
||
Command:: | ||
|
||
aws deploy register --instance-name AssetTag12010298EX --iam-user-arn arn:aws:iam::80398EXAMPLE:user/CodeDeployUser-OnPrem --tags Key=Name,Value=CodeDeployDemo-OnPrem --region us-west-2 | ||
|
||
Output:: | ||
|
||
Registering the on-premises instance... DONE | ||
Adding tags to the on-premises instance... DONE | ||
Copy the on-premises configuration file named codedeploy.onpremises.yml to the on-premises instance, and run the following command on the on-premises instance to install and configure the AWS CodeDeploy Agent: | ||
aws deploy install --config-file codedeploy.onpremises.yml |
11 changes: 11 additions & 0 deletions
11
awscli/examples/deploy/remove-tags-from-on-premises-instances.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
**To remove tags from one or more on-premises instances** | ||
|
||
This example disassociates the same on-premises tag in AWS CodeDeploy from the two specified on-premises instances. It does not deregister the on-premises instances in AWS CodeDeploy, nor uninstall the AWS CodeDeploy Agent from the instance, nor remove the on-premises configuration file from the instances, nor delete the IAM users that are associated with the instances. | ||
|
||
Command:: | ||
|
||
aws deploy remove-tags-from-on-premises-instances --instance-names AssetTag12010298EX AssetTag23121309EX --tags Key=Name,Value=CodeDeployDemo-OnPrem | ||
|
||
Output:: | ||
|
||
This command produces no output. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
**To uninstall an on-premises instance** | ||
|
||
This example uninstalls the AWS CodeDeploy Agent from the on-premises instance, and it removes the on-premises configuration file from the instance. It does not deregister the instance in AWS CodeDeploy, nor disassociate any on-premises instance tags in AWS CodeDeploy from the instance, nor delete the IAM user that is associated with the instance. | ||
|
||
Command:: | ||
|
||
aws deploy uninstall | ||
|
||
Output:: | ||
|
||
This command produces no output. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,4 +49,4 @@ Output:: | |
"ec2InstanceId": "i-0f51df05" | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.