-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
68f4e31
commit d2dfb04
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Terraform Module for S3 and DynamoDB for Terraform State Locking | ||
|
||
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. | ||
|
||
## Usage | ||
|
||
To use this module, include it in your Terraform configuration like this: | ||
|
||
```hcl | ||
module "tf_state_backend" { | ||
source = "github.com/infraspecdev/terraform-aws-s3-dynamodb-backend?ref=main" | ||
s3_bucket_name = "unique-s3-bucket-name" | ||
dynamodb_table_name = "unique_dynamodb_table" | ||
dynamodb_read_capacity = 21 | ||
dynamodb_write_capacity = 21 | ||
dynamodb_table_tags = { | ||
Environment = "dev" | ||
Project = "backend" | ||
} | ||
s3_bucket_tags = { | ||
Environment = "dev" | ||
Project = "backend" | ||
} | ||
} |