Can you help me find a useful step-by-step guide or a Gist outlining in detail how to configure CircleCI (using 2.0 syntax) to deploy to AWS EC2?
I understand the basic requirements and the moving pieces, but unsure what to put in the .circleci/config.yml
file in the deploy
step.
So far I got:
- A "Hello World" Node.js app which is building successfully in CircleCI (just without the deploy step)
- A running EC2 instance (Ubuntu 16.04)
- An IAM user with sufficient permissions added to CircleCI for that particular job
Can you help out with the CircleCI deploy step?
Following your repository, you could create a script just like that:
deploy.sh
And in your
.circleci/conf.yml
you do it:But this is so ugly, try something like AWS Codedeploy or ecs for using containers.