*Assumes you have set up EB CLI
git init
- Add your project files and whatnot
git commit -am 'yada yada'
eb init
- Answer all the questions that pop up on the CLI. Note: I would recommend visiting the AWS Console after you've done this step to make sure everything is set up. I had to set up my EC2 instance and RDS through the console
- Use Sample Application
- Use micro instances if you're on the free tier
- Visit your app at
<app-name-env>.elasticbeanstalk.com
to make sure it's up and running eb deploy
- This will deploy your latest commit to EB
- Done
If you're using RDB and want to connect to DB administration tools (e.g. pgAdmin), you will need to set up your Security Group to allow the IP you're trying to connect from:
- From the AWS Console: Services > RDS > Instances
- Click the magnifying glass to expand the details
- Mouse over the "information" icon next to the green "authorized" and click on the link to the Security Group
- Actions > Edit inbound rules
- Add Rule > Custom TCP Rule > Copy the port > Change source to "My IP" > Save
- You can now set up the connection in your admin tool using your DB credentials