Skip to content

Commit

Permalink
Adding route53 hosted zone
Browse files Browse the repository at this point in the history
  • Loading branch information
sekka1 committed Oct 7, 2021
1 parent d789ead commit 8b778ce
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
42 changes: 42 additions & 0 deletions terraform-environments/aws/dev/5-route53-hostedzone/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
locals {
aws_region = "us-east-1"
domain_name = "dev.k8s.managedkube.com"
tags = {
ops_env = "dev"
ops_managed_by = "terraform",
ops_source_repo = "kubernetes-ops",
ops_source_repo_path = "terraform-environments/aws/dev/5-route53-hostedzone",
ops_owners = "devops",
}
}

terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 3.37.0"
}
}

backend "remote" {
organization = "managedkube"

workspaces {
name = "kubernetes-ops-dev-5-route53-hostedzone"
}
}
}

provider "aws" {
region = local.aws_region
}

#
# Route53 Hosted Zone
#
module "route53-hostedzone" {
source = "github.com/ManagedKube/kubernetes-ops//terraform-modules/aws/route53/hosted-zone?ref=v1.0.19"

domain_name = local.domain_name
tags = local.tags
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
output "zone_id" {
description = "The hosted zone ID"
value = module.route53-hostedzone.zone_id
}

output "name_servers" {
description = "The hosted zone name servers"
value = module.route53-hostedzone.name_servers
}

0 comments on commit 8b778ce

Please sign in to comment.