This project create a backend structure to be use on Terraform projects on AWS Environments.
This project will create a S3 bucket and a DynamoDB Table to be used as a Terraform Backend configuration for your projects.
These instructions will get you all the information to reproduce this project on your environemtn.
What things you need to install the software and how to install them:
- terraform 1.0.7
- AWS Account and user with this previlegies.
https://www.terraform.io/downloads.html
https://portal.aws.amazon.com/billing/signup#/start
- Clone this repo into a local folder.
gh repo clone thieslei/labthyl_backend_lock_setup
-
Update the S3 name and DynamoDB table name as you want.
-
In your local folder run the Terraform commands:
terraform init
terraform plan
terraform apply
- Check it out in your AWS Account if the resources was created.
On your Terraform project use this configuration on your backend block.
terraform {
backend "s3" {
bucket = "name-terraform-state-bucket"
key = "name/terraform.tfstate"
region = "regionaws"
dynamodb_table = "name-terraform-state-table"
}
}
- Terraform - Terraform
- Terraform Backend - Terraform Backend
- Terraform Backend Lock - Terraform Backend
- DynamoDB - DynamoDB
- AWS - AWS
- S3 Bucket - S3 Buckets
- @thieslei - Thieslei Oliveira
- 📩 - [email protected]