Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 866 Bytes

README.md

File metadata and controls

15 lines (9 loc) · 866 Bytes

Terraform Backend Configuration

S3 Backend Configuration for Terraform State

Issue this command when initializing the project:

terraform init --backend-config="dynamodb_table=tf-remote-state-lock" --backend-config="bucket=tc-remotestate-7653"

Note: Bucket Name random digits will be changed

Folder Named "Backend" used to add the backend configuration to the repository and, this repository code is to create the backend infrastructure

Simply Create the infrastructure with this code and copy the file inside the "Backend" folder to the TF code which needs to have the backend configuration and issue the above init command.

View my blog article for more information: How To Configure Terraform AWS Backend With S3 And DynamoDB Table