-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
21 lines (20 loc) · 922 Bytes
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
terraform {
backend "s3" {
bucket = "placeholder" # Placeholder; will be overridden in GitHub Actions
key = "path/to/terraform.tfstate" # Customize the path to your state file
region = "placeholder" # Placeholder; will be overridden in GitHub Actions
dynamodb_table = "placeholder" # Placeholder; will be overridden in GitHub Actions
encrypt = true
}
}
# Existing module call
module "s3_backend" {
source = "./modules/s3_backend"
region = "your-region" # Replace with actual region or use a variable
s3_bucket_name = "your-tf-state-bucket-name" # Replace with your bucket name
dynamodb_table_name = "terraform-lock-table" # Replace with your DynamoDB table name
tags = {
Environment = "Production"
Project = "AWS-IAC-SINGLE-REPOSITORY"
}
}