sudo yum update -y
sudo yum search docker -y
sudo yum install docker -y
sudo systemctl enable docker.service
sudo systemctl start docker.service
sudo systemctl status docker.service
docker build -t atlantis .
docker run -itd -p 4000:4141 --name atlantis atlantis server --automerge --autoplan-modules --gh-user=<github-account-username> --gh-token=<github-usr-access-token> --repo-allowlist=<list of allowed repos>
docker run -itd -p 4000:4141 --name atlantis atlantis server --automerge --autoplan-modules --gh-user=jerinrathnam --gh-token=ghp_lj8nNeckni0N#C*54urnDBUCc0h3f#BFU --repo-allowlist=github.com/easydeploy-cloud/terraform-atlantis
docker run -itd -p 4000:4141 --name atlantis atlantis server --automerge --autoplan-modules --gh-user=jerinrathnam --gh-token=nNeckni0N#C*54urnDBUCc0h3f#BFU --repo-allowlist=github.com/easydeploy-cloud/*
docker exec -it atlantis /bin/sh
aws configure
vi /home/atlantis/.aws/credentials
[default]
aws_access_key_id = <ACCESS-KEY>
aws_secret_access_key = <SECRET-KEY>
ACCESS-KEY: Access key ID of the AWS IAM user
SECRET-KEY: Secret Access key ID of the AWS IAM user
Note: If you have many profiles you can make entries accordingly in the above file and use it in the Terraform
git add *
git commit -m "Create EC2 Instance"
git checkout -b develop
git push origin develop
atlantis plan -d .
⇨ to get a plan of the terraform code
atlantis apply -d .
⇨ to apply the terraform code
For more reference for Atlantis commands: Atlantis Commands
To find more blogs about Terraform: Terraform Blogs