Use RegisterApplicationRevision with a CLI - AWS SDK Code Examples

There are more AWS SDK examples available in the AWS Doc SDK Examples GitHub repo.

Use RegisterApplicationRevision with a CLI

The following code examples show how to use RegisterApplicationRevision.

CLI
AWS CLI

To register information about an already-uploaded application revision

The following register-application-revision example registers information about an already-uploaded application revision stored in Amazon S3 with AWS CodeDeploy.

aws deploy register-application-revision \ --application-name WordPress_App \ --description "Revised WordPress application" \ --s3-location bucket=amzn-s3-demo-bucket,key=RevisedWordPressApp.zip,bundleType=zip,eTag=cecc9b8a08eac650a6e71fdb88EXAMPLE

This command produces no output.

PowerShell
Tools for PowerShell

Example 1: This example registers an application revision with the specified Amazon S3 location, for the specified application.

Register-CDApplicationRevision -ApplicationName MyNewApplication -S3Location_Bucket amzn-s3-demo-bucket -S3Location_BundleType zip -S3Location_Key aws-codedeploy_linux-master.zip -Revision_RevisionType S3