- use
ssh-keygen -f appname
to generate key - put public key in github
- private key in opsworks (app layer)
Using Berkshelf: http://docs.aws.amazon.com/opsworks/latest/userguide/cookbooks-101-opsworks-berkshelf.html (says Chef 11 but also works on Chef 12)
http://www.mattboldt.com/aws-opsworks-rails-chef-12/
https://github.com/ajgon/opsworks_ruby http://opsworks-ruby.rzegocki.pl/configuration-builder
Packaging cookbooks http://docs.aws.amazon.com/opsworks/latest/userguide/best-practices-packaging-cookbooks-locally.html
http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html
- Set up access key
aws configure
http://docs.aws.amazon.com/cli/latest/reference/s3api/create-bucket.html
aws s3api create-bucket --bucket my-bucket --region us-east-1
aws s3 cp cookbooks.tar.gz s3://searchify-staging/
Custom JSON to specify ruby version:
{
"ruby-ng": {
"ruby_version": "2.3"
}
}
- RDS instance need to have "AWS-OpsWorks-DB-Master-Server"
- Rails layer needs "AWS-OpsWorks-Rails-App-Server"