Skip to content

Commit d2dfb04

Browse files
authored
Update .header.md
1 parent 68f4e31 commit d2dfb04

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.header.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Terraform Module for S3 and DynamoDB for Terraform State Locking
2+
3+
This module creates an S3 bucket and a DynamoDB table, which can be used to store Terraform state files and lock state files to prevent concurrent modifications.
4+
5+
## Usage
6+
7+
To use this module, include it in your Terraform configuration like this:
8+
9+
```hcl
10+
module "tf_state_backend" {
11+
source = "github.com/infraspecdev/terraform-aws-s3-dynamodb-backend?ref=main"
12+
13+
s3_bucket_name = "unique-s3-bucket-name"
14+
dynamodb_table_name = "unique_dynamodb_table"
15+
dynamodb_read_capacity = 21
16+
dynamodb_write_capacity = 21
17+
dynamodb_table_tags = {
18+
Environment = "dev"
19+
Project = "backend"
20+
}
21+
s3_bucket_tags = {
22+
Environment = "dev"
23+
Project = "backend"
24+
}
25+
}

0 commit comments

Comments
 (0)