Checkout code:
git clone https://github.com/TheDevOpsHub/TerraformHub.git
Update the S3 and DynamoDB naming variable:
- Open TerraformHub/AWS/tf-backend/variables.tf file then change
bucket_name
andtable_name
to your own value
variable "bucket_name" {
description = "The name of the S3 bucket. Must be globally unique."
type = string
default = "your-bucker-name"
}
variable "table_name" {
description = "The name of the DynamoDB table. Must be unique in this AWS account."
type = string
default = "your-table-name"
}
Run:
cd scripts
./create-backend.sh
Run:
cd scripts
./destroy-backend.sh