Add module related to Route53
This commit is contained in:
9
modules/route53/main.tf
Normal file
9
modules/route53/main.tf
Normal file
@ -0,0 +1,9 @@
|
||||
resource "aws_route53_zone" "primary" {
|
||||
name = var.name
|
||||
|
||||
//public 이면 vpc 불필요
|
||||
count = var.public ? 0 : 1
|
||||
vpc {
|
||||
vpc_id = var.vpc_id
|
||||
}
|
||||
}
|
3
modules/route53/outputs.tf
Normal file
3
modules/route53/outputs.tf
Normal file
@ -0,0 +1,3 @@
|
||||
output "id" {
|
||||
value = aws_route53_zone.primary.id
|
||||
}
|
9
modules/route53/variables.tf
Normal file
9
modules/route53/variables.tf
Normal file
@ -0,0 +1,9 @@
|
||||
variable "name" {
|
||||
description = "route53 name"
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "name" {
|
||||
description = "route53 name"
|
||||
type = string
|
||||
}
|
Reference in New Issue
Block a user