Skip to content

Commit 73d35e2

Browse files
committed
Adding sample output to help showcase the power of the aws-code-deploy
script runner.
1 parent e047a24 commit 73d35e2

File tree

1 file changed

+59
-2
lines changed

1 file changed

+59
-2
lines changed

README.md

Lines changed: 59 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,66 @@ the [AWS CLI API](http://docs.aws.amazon.com/cli/latest/reference/deploy/index.h
3232
```
3333
* The file can then be executed from the /vendor/bin directory: `bash vendor/bin/aws-code-deploy.sh`
3434

35-
2. Git Submodule
35+
## Sample Output
3636

37-
3. Git Subtree
37+
```bash
38+
39+
Step 1: Checking Dependencies
40+
✔ Dependencies met (aws: aws-cli/1.8.12 Python/2.7.6 Linux/3.14.28-031428-generic).
41+
42+
Step 2: Configuring AWS
43+
✔ AWS Access Key already configured.
44+
✔ AWS Secret Access Key already configured.
45+
✔ Successfully configured AWS default region.
46+
47+
Step 3: Checking Application
48+
➜ aws deploy get-application --application-name TechPivot
49+
✔ Application "TechPivot" already exists
50+
51+
Step 4: Checking Deployment Config
52+
➜ aws deploy get-deployment-config --deployment-config-name CodeDeployDefault.AllAtOnce
53+
✔ Deployment config "CodeDeployDefault.AllAtOnce" already exists
54+
55+
Step 5: Checking Deployment Group
56+
➜ aws deploy get-deployment-group --application-name TechPivot --deployment-group-name www.techpivot.net
57+
✔ Deployment group "www.techpivot.net" already exists for application "TechPivot"
58+
59+
Step 6: Compressing Source Contents
60+
cd "/home/ubuntu/deploy" && zip -rq "/tmp/729#a4d2fa4.zip" .
61+
✔ Successfully compressed "/home/ubuntu/deploy" (57M) into "729#a4d2fa4.zip" (18M)
62+
63+
Step 7: Copying Bundle to S3
64+
➜ aws s3 cp --sse "/tmp/729#a4d2fa4.zip" "s3://techpivot-codedeploy/www/729#a4d2fa4.zip"
65+
✔ Successfully copied bundle "729#a4d2fa4.zip" to S3
66+
67+
Step 8: Limiting Deploy Revisions per Bucket/Key
68+
69+
Checking bucket/key to limit total revisions at 10 files ...
70+
➜ aws s3 ls "s3://techpivot-codedeploy/www/"
71+
72+
Removing oldest 1 file(s) ...
73+
➜ aws s3 rm "s3://techpivot-codedeploy/www/713#1ef9317.zip"
74+
✔ Successfuly removed 1 file(s)
75+
76+
Step 9: Registering Revision
77+
➜ aws deploy register-application-revision --application-name "TechPivot" --s3-location bucket=techpivot-codedeploy,bundleType=zip,key=www/729#a4d2fa4.zip --description "master (#a4d2fa4)"
78+
✔ Registering revision succeeded
79+
80+
Step 10: Creating Deployment
81+
➜ aws deploy create-deployment --application-name TechPivot --deployment-config-name CodeDeployDefault.AllAtOnce --deployment-group-name www.techpivot.net --s3-location bucket=techpivot-codedeploy,bundleType=zip,key=www/729#a4d2fa4.zip --description "Deployed via CircleCI on Sun Nov 8 23:32:30 UTC 2015"
82+
✔ Successfully created deployment: "d-CDR1HA75C"
83+
84+
Note: You can follow your deployment at: https://console.aws.amazon.com/codedeploy/home#/deployments/d-CDR1HA75C
85+
86+
Deployment Overview
87+
88+
Monitoring deployment "d-CDR1HA75C" for "TechPivot" on deployment group www.techpivot.net ...
89+
➜ aws deploy get-deployment --deployment-id "d-CDR1HA75C"
90+
91+
92+
Status | In Progress: 0 | Pending: 0 | Skipped: 0 | Succeeded: 1 | Failed: 0 |
93+
✔ Deployment of application "TechPivot" on deployment group "www.techpivot.net" succeeded
94+
```
3895

3996

4097
## Variables

0 commit comments

Comments
 (0)