1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28terraform {
required_version = ">= 1.5.0"
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 5.0"
}
random = {
source = "hashicorp/random"
version = "~> 3.6"
}
}
# Configure after running `bootstrap/` and obtaining its outputs. Terraform
# does not support variables in the backend block, so these placeholders
# must be filled in directly here or passed via `-backend-config` flags:
#
# terraform init \
# -backend-config="bucket=<state_bucket_name>" \
# -backend-config="dynamodb_table=<lock_table_name>" \
# -backend-config="region=<aws_region>"
backend "s3" {
key = "equalify/terraform.tfstate"
encrypt = true
}
}