There are more AWS SDK examples available in the AWS Doc SDK Examples
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-revisionexample registers information about an already-uploaded application revision stored in Amazon S3 with AWS CodeDeploy.aws deploy register-application-revision \ --application-nameWordPress_App\ --description"Revised WordPress application"\ --s3-locationbucket=amzn-s3-demo-bucket,key=RevisedWordPressApp.zip,bundleType=zip,eTag=cecc9b8a08eac650a6e71fdb88EXAMPLEThis command produces no output.
-
For API details, see RegisterApplicationRevision
in AWS CLI Command Reference.
-
- PowerShell
-
- Tools for PowerShell V4
-
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-
For API details, see RegisterApplicationRevision in AWS Tools for PowerShell Cmdlet Reference (V4).
-
- Tools for PowerShell V5
-
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-
For API details, see RegisterApplicationRevision in AWS Tools for PowerShell Cmdlet Reference (V5).
-