Terraforming the GitOps Way using Atlantis !!!

Pavan Kumar
Nerd For Tech
Published in
6 min readMar 27, 2022

--

Terraform with GitOps using Atlantis (Pull request Automation)….

Do you use terraform in your Organisation? Or even for your personal Projects? If yes, by the end of this article you would change the way you manage and deploy terraform resources. Assume that you are the senior-most junior developer who has joined the Organisation and started working on your first terraform project. You’ve written the modules, scripts and have made sure that the code is working perfectly fine. Ahh, what should be the next step? To deploy the infrastructure, correct? What are the commands that you’d use?

$ terraform init $ terraform plan$ terraform apply 

Awesome, you should be very happier when you see the resources being created with the terraform code. One of your bosses had now asked you to change some configurations in your code. What would be the steps?

a) Pull the latest code from any SCM.

b) Make the changes.

c) Check out the code to a different branch and raise a Pull Request. Get it reviewed.

d) Init, Plan, and Apply.

e) Merge the Request.

What if the steps could be something like this?

a) Pull the latest code.

b) Make the changes.

c) Check out the code to a different branch and raise a Pull Request. Get it…

--

--

Pavan Kumar
Nerd For Tech

Senior Cloud DevOps Engineer || CKA | CKS | CSA | CRO | AWS | ISTIO | AZURE | GCP | DEVOPS Linkedin:https://www.linkedin.com/in/pavankumar1999/