feat: added tags to parts of vpc module, to use with proxy

This commit is contained in:
2025-02-18 15:16:06 -05:00
parent d961d8ffb6
commit 53ad9c161c

View File

@@ -22,11 +22,14 @@ module "vpc" {
map_public_ip_on_launch = true map_public_ip_on_launch = true
enable_dns_hostnames = true enable_dns_hostnames = true
enable_dns_support = true enable_dns_support = true
private_route_table_tags = { TableOf = "Main", TableType = "Public" }
} }
# Only allow HTTP(s) and SSH traffic. Allow full access to internet. # Only allow HTTP(s) and SSH traffic. Allow full access to internet.
resource "aws_security_group" "public_access" { resource "aws_security_group" "public_access" {
vpc_id = module.vpc.vpc_id vpc_id = module.vpc.vpc_id
name = "Public Access"
} }
resource "aws_vpc_security_group_ingress_rule" "ingress" { resource "aws_vpc_security_group_ingress_rule" "ingress" {