_____ __ _____ _________ .__ .___
/ \ _____ _______/ |_ ___________ _____/ ____\ \_ ___ \| | ____ __ __ __| _/
/ \ / \\__ \ / ___/\ __\/ __ \_ __ \ / _ \ __\ / \ \/| | / _ \| | \/ __ |
/ Y \/ __ \_\___ \ | | \ ___/| | \/ ( <_> ) | \ \___| |_( <_> ) | / /_/ |
\____|__ (____ /____ > |__| \___ >__| \____/|__| \______ /____/\____/|____/\____ |
\/ \/ \/ \/ \/ \/
- Execute the following commands:
mv .env.private.sample .env.private
mv Gemfile.sample Gemfile
mv Gemfile.lock.sample Gemfile.lock
- Edit .env.private and configure your AWS credentials, or export your AWS credentials.
- Modify config.yaml and change 'mysubdomain.masterofcloud.com' to 'yourname.masterofcloud.com'
- Type
./rake_init.sh
to create the DependencyStack in your AWS account
rake_init.sh
- Create the DependencyStack for this environmentrake.sh
- Compile code and run unit testsrake_dependencies.sh
- Write dependencies to .env.dependencies.environmentrake_compile.sh
Compile coderake_spec.sh
- Run unit testsrake_upload.sh
- Upload the CloudFormation artifactsrake_apply.sh
- Deploy code
rake
- Retrieve required outputs from DependencyStack, Compile the code into CloudFormation templates and run unit testsrake init
- Deploy the DependencyStack in the AWS accountrake compile
- Compile the code into CloudFormation templatesrake spec
- Run unit testsrake upload
- Upload the CloudFormation templates to s3rake update
- Save required outputs from DependencyStack to .env.dependencies.rake apply
- Deploy the CloudFormation templates
The config.yaml
file in the root directory of this project contains most of the configuration. It contains the networking configuration for each environment, subnet configuration, DNS and ECS (Docker) containers that are deployed.