erc 모듈화, vpc public dns 설정 등
This commit is contained in:
7
modules/igw/main.tf
Normal file
7
modules/igw/main.tf
Normal file
@ -0,0 +1,7 @@
|
||||
resource "aws_internet_gateway" "gw" {
|
||||
vpc_id = var.vpc_id
|
||||
|
||||
tags = {
|
||||
Name = "main-igw"
|
||||
}
|
||||
}
|
4
modules/igw/valiables.tf
Normal file
4
modules/igw/valiables.tf
Normal file
@ -0,0 +1,4 @@
|
||||
variable "vpc_id" {
|
||||
description = "set vpc id"
|
||||
type = string
|
||||
}
|
Reference in New Issue
Block a user