Skip to content

Commit fcf483d

Browse files
authored
Infra (#12)
* jan-15 adding basic terragrunt
1 parent eccfe4a commit fcf483d

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
2+
terraform {
3+
source = "../terraform-modules/vpc"
4+
}
5+
6+
include "root" {
7+
path = find_in_parent_folders()
8+
}
9+
10+
# Specify inputs for the VPC module
11+
inputs = {
12+
aws_region = "us-east-1"
13+
vpc_cidr = "10.0.0.0/16"
14+
ipv6_cidr = "2600:1f18:abcd::/56"
15+
vpc_name = "multi-az-vpc"
16+
igw_name = "multi-az-igw"
17+
public_rt_name = "multi-az-public-rt"
18+
public_subnet_name_prefix = "multi-az-public-subnet"
19+
private_subnet_name_prefix = "multi-az-private-subnet"
20+
}
21+
22+
# Remote state configuration
23+
remote_state {
24+
backend = "s3"
25+
config = {
26+
bucket = "my-terraform-state-bucket"
27+
key = "multi-az-vpc/terraform.tfstate"
28+
region = "us-east-1"
29+
encrypt = true
30+
dynamodb_table = "terraform-lock"
31+
}
32+
}

0 commit comments

Comments
 (0)