igw 생성.

This commit is contained in:
2022-12-26 19:13:43 +09:00
parent 535d721a50
commit 89ee20efff
22 changed files with 136 additions and 28 deletions

View File

@ -2,6 +2,6 @@ resource "aws_internet_gateway" "gw" {
vpc_id = var.vpc_id
tags = {
Name = "main-igw"
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.gw.id
}

View File

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