Skip to content

Commit

Permalink
route53 terraform files
Browse files Browse the repository at this point in the history
  • Loading branch information
Administrator committed Mar 7, 2024
1 parent 4e91152 commit 35755e4
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 0 deletions.
17 changes: 17 additions & 0 deletions infra/route53/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
provider "aws" {
region = var.region
}

module "route53" {
source = "../../modules/route53"
region = var.region

dns_domain_name = var.dns_domain_name

name = var.name
environment = var.environment
owner = var.owner
cost_center = var.cost_center
application = var.application

}
14 changes: 14 additions & 0 deletions infra/route53/outputs.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
output "zone_id" {
description = "The Zone ID of the Hosted Zone"
value = module.route53.zone_id
}

output "name_servers" {
description = "The list of Name Servers of the Hosted Zone"
value = module.route53.name_servers
}

output "tags_all" {
description = "The list of Tags associated with the Hosted Zone"
value = module.route53.tags_all
}
40 changes: 40 additions & 0 deletions infra/route53/variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
variable "region" {
type = string
description = "The AWS region where the Certificate Manager will be used."
}

variable "tags" {
default = {}
type = map(string)
description = "A map of extra tags to attach to the AWS resources."
}

variable "name" {
type = string
description = "A user-defined name for the AWS resources."
}

variable "environment" {
type = string
description = "The name of the environment associated with the AWS resources."
}

variable "owner" {
type = string
description = "The name of the owner or responsible party for the AWS resources."
}

variable "cost_center" {
type = string
description = "The identifier for the cost center associated with the AWS resources."
}

variable "application" {
type = string
description = "The name of the application or project related to the AWS resources."
}

variable "dns_domain_name" {
type = string
description = "Domain name of the Route 53"
}

0 comments on commit 35755e4

Please sign in to comment.