라우팅테이블 서브넷 리스트 할당 연결

This commit is contained in:
2022-12-26 21:47:17 +09:00
parent 89ee20efff
commit c79a4c9c29
6 changed files with 37 additions and 12 deletions

View File

@ -1,5 +1,5 @@
resource "aws_route" "r" {
route_table_id = "rtb-4fbb3ac4"
resource "aws_route" "route-add" {
route_table_id = var.route_public_id
destination_cidr_block = "0.0.0.0/0"
gateway_id = var.igw_id
depends_on = [var.route_public_id]

View File

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