Building Terraform Platform for Your Team Using AWS, Atlantis, and GitHub

Roy Inganta Ginting
Jun 17 · 9 min read
Image for post
Image for post
Photo by Esther Jiao on Unsplash

Provision AWS resources for the Terraform Platform

Terraform main.tf
Terraform providers.tf
Terraform outputs.tf
git init
echo -e ".terraform\ntfplan.out" >> .gitignore
git add .
git commit -m 'Initial commit'
git remote add origin <GITHUB_REPO_URL>
git push -u origin master

Prepare GitHub Credential for Atlantis

Setup and configure Atlantis

; filename: hosts
[atlantis]
<ATLANTIS_IP> ansible_user=ubuntu
Atlantis Playbook
echo vault-pass-file >> .gitignore
git add .
git commit -m 'Install and configure Atlantis'
git push

Trying out the Terraform Platform

Terraform providers.tf
resource "aws_s3_bucket" "bucket" {
bucket = "dummy-bucket-for-testing-123abc"
}
Image for post
Image for post
Terraform Platform Atlantis Plan
Image for post
Image for post
Terraform Platform Atlantis Run
Image for post
Image for post
Terraform Platform Atlantis Web UI

Conclusion


Easyread

Easy read, easy understanding.

Roy Inganta Ginting

Written by

Automation with human touch. Ops person with software engineer mindset

Easyread

Easyread

Easy read, easy understanding. A good writing is a writing that can be understood in easy ways

Roy Inganta Ginting

Written by

Automation with human touch. Ops person with software engineer mindset

Easyread

Easyread

Easy read, easy understanding. A good writing is a writing that can be understood in easy ways

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store