Terraform Automation
A project to demonstrate how to automate terraform workflow with Github Actions.
Getting Started
These instructions will get you a copy of the project up and running on your local machine for development purpose.
Prerequisites
To get started with this project you need a basic knowledge of the following.
Version Control (Git)
Terraform
AWS
Automating Terraform with Github Actions
-
Login to your AWS account and generate
AWS_ACCESS_KEY_ID
andAWS_SECRET_ACCESS_KEY
. -
After that, login to your Terraform Cloud account. Create a new workspace and select API-driven workflow.
-
Then navigate to the Variables tab and click on Add variable. Add
AWS_ACCESS_KEY_ID
andAWS_SECRET_ACCESS_KEY
with their respective values. -
From your Terraform Cloud User Settings, click on Tokens and generate an API token named
GitHub Actions
. -
Add the token to your Github repository as a…