route53 add
This commit is contained in:
@ -1,9 +1,5 @@
|
||||
resource "aws_route53_zone" "primary" {
|
||||
name = var.name
|
||||
|
||||
//public 이면 vpc 불필요
|
||||
count = var.public ? 0 : 1
|
||||
vpc {
|
||||
vpc_id = var.vpc_id
|
||||
}
|
||||
comment = "hq-dns-server"
|
||||
}
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
output "id" {
|
||||
value = aws_route53_zone.primary.id
|
||||
output "zone_id" {
|
||||
value = aws_route53_zone.primary.zone_id
|
||||
|
||||
}
|
@ -2,13 +2,3 @@ variable "name" {
|
||||
description = "route53 name"
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "public" {
|
||||
description = "route53 name"
|
||||
type = bool
|
||||
}
|
||||
|
||||
variable "vpc_id" {
|
||||
description = "vpc_id"
|
||||
type = string
|
||||
}
|
Reference in New Issue
Block a user