init
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" "main" {
|
||||
vpc_id = var.vpc_id
|
||||
|
||||
tags = {
|
||||
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.main.id
|
||||
}
|
||||
9
modules/igw/valiables.tf
Normal file
9
modules/igw/valiables.tf
Normal file
@ -0,0 +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