Skip to content

Commit facf5ed

Browse files
committed
VED-26: Add more tags. TF init.
1 parent b086018 commit facf5ed

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

infra/.terraform.lock.hcl

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

infra/networking.tf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ resource "aws_vpc" "default" {
3333
cidr_block = "172.31.0.0/16"
3434
enable_dns_support = true
3535
enable_dns_hostnames = true
36+
3637
tags = {
3738
Name = "imms-${var.environment}-fhir-api-vpc"
3839
}
@@ -49,13 +50,15 @@ resource "aws_subnet" "public" {
4950

5051
resource "aws_internet_gateway" "default" {
5152
vpc_id = aws_vpc.default.id
53+
5254
tags = {
5355
Name = "imms-${var.environment}-fhir-api-igw"
5456
}
5557
}
5658

5759
resource "aws_route_table" "public" {
5860
vpc_id = aws_vpc.default.id
61+
5962
tags = {
6063
Name = "imms-${var.environment}-fhir-api-public-rtb"
6164
}
@@ -91,10 +94,15 @@ resource "aws_eip" "nat" {
9194
resource "aws_nat_gateway" "default" {
9295
allocation_id = aws_eip.nat.id
9396
subnet_id = aws_subnet.public[0].id
97+
98+
tags = {
99+
Name = "imms-${var.environment}-fhir-api-nat"
100+
}
94101
}
95102

96103
resource "aws_route_table" "private" {
97104
vpc_id = aws_vpc.default.id
105+
98106
tags = {
99107
Name = "imms-${var.environment}-fhir-api-private-rtb"
100108
}

0 commit comments

Comments
 (0)