forked from remind101/stacker_blueprints
-
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
Open
ozbillwang
wants to merge
4
commits into
cloudtools:master
Choose a base branch
from
ozbillwang:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Better README #17
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
stacker_blueprints | ||
================== | ||
|
||
[![circleci](https://circleci.com/gh/cloudtools/stacker_blueprints.svg?style=shield)](https://circleci.com/gh/cloudtools/stacker_blueprints) | ||
[![pypi package](https://badge.fury.io/py/stacker_blueprints.svg)](https://badge.fury.io/py/stacker_blueprints) | ||
[![slack](https://empire-slack.herokuapp.com/badge.svg)](https://empire-slack.herokuapp.com) | ||
|
||
An attempt at a common Blueprint library for use with [stacker](https://github.com/cloudtools/stacker). | ||
|
||
# Quick start | ||
|
||
>NOTES: it will create aws resources and generate cost on your aws account. `make destroy` them all if not required any more. | ||
|
||
If you're new to stacker you may use [stacker_cookiecutter](https://github.com/cloudtools/stacker_cookiecutter) to setup your project. | ||
|
||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
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 comment
The reason will be displayed to describe this comment to others. Learn more.
I got this error