Shift3 / standards-and-practices

Standards and Practices for Bitwise Industries
https://shift3.github.io/standards-and-practices/
63 stars 41 forks source link

Add AWS Elastic Beanstalk Deployment #80

Open ryekerjh opened 5 years ago

ryekerjh commented 5 years ago

For our APIs here at Shift3

mwallert commented 5 years ago

@carlosvargas I just pushed up a starting point and moved some folders around, feel free to modify whatever you need. I'll continue building on this tomorrow!

https://github.com/Shift3/standards-and-practices/tree/mw/issue-80/aws/elastic-beanstalk

coreyshuman commented 4 years ago

I had started on this but got sidetracked. Here are my notes for reference.

- RDS security setup with EB: https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/AWSHowTo.RDS.html

eb deploy notes
- create environment
- eb init
- setup ~/.aws/... and match in .ebextensions
- RDS? setup RDS
- RDS security (see link above)
- Setup health check URL

Setup SSL  
https://medium.com/@jameshamann/configuring-your-elastic-beanstalk-app-for-ssl-9065ca091f49
- create alias A Record (mydomain-com -> app.xxxxx.us-east-2.elasticbeanstalk.com)
- setup SSL cert
  - Certificate Manager
  - Provision Certificate
  - Public Certificate
  - Enter name > next
  - DNS Validation
  - EB > Configuration > Load Balancer
  - Add Listener, 443, HTTPS, select SSL cert, top policy
michaelachrisco commented 3 years ago

@mwallert and/or @Basim-Elayan Do you know if we are still working on this? This looks related to https://github.com/Shift3/standards-and-practices/issues/246

mwallert commented 3 years ago

@michaelachrisco Another one on my todo list unfortunately. I am not currently working on this but I would like to get the documentation up for non-terraform deployments

michaelachrisco commented 3 years ago

Sounds good, no rush, just looking at following up with all these old issues. Appreciate the response!

In that case, Im thinking this may be a sow burn as we document other projects like you stated.