Reputation: 101
I have been trying to figure out, how to find s3 URL or s3 object name which is created after the codedeploy deployment with new commit ID.
Upvotes: 0
Views: 255
Reputation: 56
Here is the aws-cli way to list application revisions and their s3 Location:
aws deploy list-application-revisions --application <your application name>
Example output:
{ "revisionType": "S3",
"s3Location": {
"bucket:" "mybucket",
"key": "mys3objectname",
"bundleType": "zip",
"eTag": "ff1e77d70adaedfd14cecba209811a94"
}
}
To construct an s3 url from this, use:
https://s3-<region>.amazonaws.com/<bucket>/<key>
If you need to find your application name, use:
aws deploy list-applications
Upvotes: 1