-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better README #17
base: master
Are you sure you want to change the base?
Better README #17
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,29 @@ | ||
.PHONY: all lint test | ||
REGION ?= us-west-2 | ||
ENV ?= stage | ||
ARGS ?= --interactive | ||
|
||
all: lint test | ||
.PHONY: all lint test build | ||
|
||
all: lint test build | ||
|
||
# run one time only | ||
prerequisite: | ||
sudo python setup.py install | ||
|
||
lint: | ||
flake8 stacker_blueprints | ||
|
||
test: | ||
python setup.py test | ||
|
||
build: | ||
stacker build --region ${REGION} ${ARGS} conf/${ENV}.env conf/example.yaml | ||
|
||
diff: | ||
stacker diff --region ${REGION} ${ARGS} conf/${ENV}.env conf/example.yaml | ||
|
||
info: | ||
stacker info --region ${REGION} ${ARGS} conf/${ENV}.env conf/example.yaml | ||
|
||
destroy: | ||
stacker destroy --region ${REGION} ${ARGS} conf/${ENV}.env conf/example.yaml |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
stacker_blueprints | ||
================== | ||
|
||
[](https://circleci.com/gh/cloudtools/stacker_blueprints) | ||
[](https://badge.fury.io/py/stacker_blueprints) | ||
[](https://empire-slack.herokuapp.com) | ||
|
||
An attempt at a common Blueprint library for use with `stacker <https://github.com/cloudtools/stacker>`_. | ||
|
||
If you're new to stacker you may use `stacker_cookiecutter <https://github.com/cloudtools/stacker_cookiecutter>`_ to setup your project. | ||
|
||
# Quick start | ||
|
||
>NOTES: it will create aws resources and generate cost on your aws account. `make destroy` them all if not required any more. | ||
|
||
1) Make sure you [set up authentication credentials to access aws](http://boto3.readthedocs.io/en/latest/guide/quickstart.html#configuration) | ||
|
||
2) Review files [conf/stage.env](conf/stage.env) and [conf/example.yaml](conf/example.yaml) | ||
|
||
3) Adjust namespace in [conf/stage.env](conf/stage.env) to a global unique name | ||
|
||
### Build the stacks | ||
|
||
Build full stacks (vpc, bastion, myDB, myWeb) | ||
|
||
$ git clone https://github.com/cloudtools/stacker_blueprints.git | ||
$ cd stacker_blueprints | ||
$ make build | ||
|
||
# If you have other environment files, such as prod.env | ||
$ make build ENV=prod | ||
|
||
# If you want to create stacks in other region | ||
$ make build REGION=ap-southeast-2 | ||
|
||
### Other commands | ||
|
||
$ make info | ||
$ make diff | ||
$ make destroy | ||
|
||
### Try other examples | ||
|
||
There are examples under folder `conf`, for example, you want to run test on rds stack, you can easily play with below command | ||
|
||
stacker build --region us-west-2 conf/rds/mysql.env conf/rds/mysql.yaml |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,4 @@ | |
# will be used to prefix the CloudFormation stack names as well as the s3 | ||
# bucket that contains revisions of the stacker templates. This is the only | ||
# required environment variable. | ||
namespace: | ||
namespace: stacker_blueprints | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If this is left blank, what error happens if you run this? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I got this error
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Quickstart should reference the cookie cutter project.