Skip to content

Instantly share code, notes, and snippets.

@jweiss
Last active January 4, 2016 00:49
Show Gist options
  • Select an option

  • Save jweiss/8544106 to your computer and use it in GitHub Desktop.

Select an option

Save jweiss/8544106 to your computer and use it in GitHub Desktop.
aws opsworks --region us-east-1 create-deployment --stack-id 935450cc-61e0-4b03-a3e0-160ac817d2bb --command "{\"Name\":\"deploy\", \"CustomJson\":{\"deploy\":{\"APPSHORTNAME\":{\"scm\":{\"revision\":\"MYBRANCHNAME\"}}}}}"
The JSON structure you want to pass should look like this:
{
"deploy": {
"MYAPPSHORTNAME": {
"scm": {
"revision": "MYGITBRANCH"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment