This commit is contained in:
2025-11-18 03:20:27 +00:00
parent c50d803865
commit fadee048d7
49 changed files with 3243 additions and 0 deletions

7
modules/igw/main.tf Normal file
View File

@ -0,0 +1,7 @@
resource "aws_internet_gateway" "main" {
vpc_id = var.vpc_id
tags = {
Name = "${var.tag_name}-igw"
}
}

5
modules/igw/outputs.tf Normal file
View File

@ -0,0 +1,5 @@
//modules-igw-output
output "igw_id" {
description = "The name of hq-igw id"
value = aws_internet_gateway.main.id
}

9
modules/igw/valiables.tf Normal file
View File

@ -0,0 +1,9 @@
variable "vpc_id" {
description = "set vpc id"
type = string
}
variable "tag_name" {
description = "value"
type = string
}