igw 생성.
This commit is contained in:
7
modules/route-add/main.tf
Normal file
7
modules/route-add/main.tf
Normal file
@ -0,0 +1,7 @@
|
||||
resource "aws_route" "r" {
|
||||
route_table_id = "rtb-4fbb3ac4"
|
||||
destination_cidr_block = "0.0.0.0/0"
|
||||
gateway_id = var.igw_id
|
||||
depends_on = [var.route_public_id]
|
||||
# depends_on = [aws_route_table.testing]
|
||||
}
|
0
modules/route-add/outputs.tf
Normal file
0
modules/route-add/outputs.tf
Normal file
14
modules/route-add/variables.tf
Normal file
14
modules/route-add/variables.tf
Normal file
@ -0,0 +1,14 @@
|
||||
variable "vpc_id" {
|
||||
description = "set vpc id"
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "tag_name" {
|
||||
description = "value"
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "igw_id" {
|
||||
description = "value"
|
||||
type = string
|
||||
}
|
Reference in New Issue
Block a user