GithubHelp home page GithubHelp logo

doytsujin / terraform-azurerm-dns-zone Goto Github PK

View Code? Open in Web Editor NEW

This project forked from azure-terraform/terraform-azurerm-dns-zone

0.0 1.0 0.0 17 KB

Terraform DNS Zone Module

License: MIT License

HCL 100.00%

terraform-azurerm-dns-zone's Introduction

Azure - Delegated DNS Zone

Introduction

This module will create a Delegated DNS Zone in an existing DNS zone in Azure.

  • The Terraform credentials being used must have access to both the child and parent subsciptions (they may be the same).
  • child_domain_prefix may include multiple subdomains
    • child.domain.prefix.parent.domain

Input

Providers

Name Version
azurerm.child >= 2.0.0
azurerm.parent >= 2.0.0

Inputs

Name Description Type Default Required
child_domain_prefix child domain prefix (<child_domain_prefix>.<parent_domain>) string n/a yes
child_domain_resource_group_name name of the target resource group string n/a yes
child_domain_subscription_id ID of the target subscription string n/a yes
parent_domain pre-existing parent domain in which to create the NS record for the child domain string n/a yes
parent_domain_resource_group_name name of the pre-existing parent resource_group - This is the owner of the root domain string n/a yes
parent_domain_subscription_id ID of the parent subscription - This is the owner of the parent domain string n/a yes
tags Tags to be applied to resources (inclusive) map(string) n/a yes

Outputs

Name Description
id id of dns child zone
name The DNS zone that has been delegated to you
resource_group_name The resource group which contains the child zone
subscription_id The subscription_id which contains the child zone

Example

module "dns" {
  source = "github.com/Azure-Terraform/terraform-azurerm-dns-zone.git"

  child_domain_resource_group_name = "child-domain-resource-group"
  child_domain_subscription_id     = "00000-0000-0000-0000-0000000"
  child_domain_prefix              = "prod.west"

  parent_domain_resource_group_name = "parent-domain-resource-group"
  parent_domain_subscription_id     = "11111-1111-1111-1111-111111"
  parent_domain                     = "example.com"

  tags = { "environment" = "production"
           "location"    = "west" }
}

output "domain" {
  value = module.dns.name
}

##### RESULT #####
#Apply complete! Resources: 2 added, 0 changed, 0 destroyed.
#
#Outputs:
#
#domain = prod.west.example.com

terraform-azurerm-dns-zone's People

Contributors

jhisc avatar dutsmiller avatar bostjanbozic avatar fabiendelpierre avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.