Skip to content

Commit

Permalink
Merge pull request #25 from chef-customers/THREE_POINT_OH
Browse files Browse the repository at this point in the history
3.0 Release & Improvements
  • Loading branch information
Irving Popovetsky authored Dec 29, 2017
2 parents 12f8ab3 + 08205e3 commit 62dc46d
Show file tree
Hide file tree
Showing 6 changed files with 285 additions and 148 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ addons:
- awscli
install: true
script:
- aws cloudformation validate-template --template-body file://backendless_chef.yaml
- aws s3 cp backendless_chef.yaml s3://aws-native-chef-server/backendless_chef_test.yaml
- aws cloudformation validate-template --template-url https://s3.amazonaws.com/aws-native-chef-server/backendless_chef_test.yaml
deploy:
provider: s3
access_key_id:
Expand Down
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@ You can launch this stack with the push of a button:
However, the most repeatable and least error-prone way to launch this stack is to use the `aws` command-line. First copy file `stack_parameters.json.example` to `stack_parameters.json`, make the necessary changes, then run this command:

```bash
MYBUCKET=aws-native-chef-server
aws cloudformation create-stack \
--stack-name irving-backendless-chef \
--template-body file://backendless_chef.yaml \
--template-url https://s3.amazonaws.com/$MYBUCKET/backendless_chef.yaml \
--capabilities CAPABILITY_IAM \
--on-failure DO_NOTHING \
--parameters file://stack_parameters.json
Expand All @@ -43,10 +44,12 @@ aws cloudformation create-stack \
If you've made changes to the template content or parameters and you wish to update a running stack:

```bash
aws cloudformation validate-template --template-body file://backendless_chef.yaml &&
MYBUCKET=aws-native-chef-server
aws s3 cp backendless_chef.yaml s3://$MYBUCKET/
aws cloudformation validate-template --template-url https://s3.amazonaws.com/$MYBUCKET/backendless_chef.yaml
aws cloudformation update-stack \
--stack-name irving-backendless-chef \
--template-body file://backendless_chef.yaml \
--stack-name irving-backendless-chef2 \
--template-url https://s3.amazonaws.com/$MYBUCKET/backendless_chef.yaml \
--capabilities CAPABILITY_IAM \
--parameters file://stack_parameters.json
```
Expand Down
Loading

0 comments on commit 62dc46d

Please sign in to comment.