igw 생성.
This commit is contained in:
@ -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
5
modules/igw/outputs.tf
Normal file
@ -0,0 +1,5 @@
|
||||
//modules-igw-output
|
||||
output "igw_id" {
|
||||
description = "The name of hq-igw id"
|
||||
value = aws_internet_gateway.gw.id
|
||||
}
|
@ -1,4 +1,9 @@
|
||||
variable "vpc_id" {
|
||||
description = "set vpc id"
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "tag_name" {
|
||||
description = "value"
|
||||
type = string
|
||||
}
|
Reference in New Issue
Block a user