Coder Social home page Coder Social logo

padok-team / terraform-google-dns Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 0.0 63 KB

Terraform module which creates DNS resources on Google Cloud Provider. You can determine if it will be public or private and a list of your DNS records.

License: Apache License 2.0

Makefile 43.63% HCL 56.37%
google-cloud-platform terraform terraform-module google-cloud dns ready-to-use

terraform-google-dns's Introduction

Google DNS Terraform module

Terraform module which creates DNS resources on Google Cloud Provider. You can determine if it will be public or private and a list of your DNS records.

User Stories for this module

  • AAOps I am able to list all my DNS records and set them
  • AAOps I can create a public or private DNS zone
  • AAOps I can create a DNS zone and record separatly

Usage

module "simple_public_zone" {
  source = "[email protected]:padok-team/terraform-google-dns.git?ref=v1.4.0"

  project_id = "my-awesome-project"

  name   = "padok-simple-public-zone"
  fqdn   = "test.library.padok.fr."
  public = true
  records = {
    "rec1" = {
      name    = "www"
      type    = "A"
      rrdatas = ["35.189.202.112"]
      ttl     = 60
    }
    "rec2" = {
      name    = ""
      type    = "A"
      rrdatas = ["35.189.202.112"]
      ttl     = 60
    }
    "rec3" = {
      name    = ""
      type    = "MX"
      rrdatas = [
        "1 aspmx.l.google.com.",
        "5 alt1.aspmx.l.google.com.",
        "5 alt2.aspmx.l.google.com.",
        "10 alt3.aspmx.l.google.com.",
        "10 alt4.aspmx.l.google.com.",
      ]
      ttl = 60
    }
  }
}

Examples

All examples are in the examples folder:

Modules

No modules.

Inputs

Name Description Type Default Required
name Name of your DNS zone. string n/a yes
project_id The project ID to manage the DNS resources. string n/a yes
fqdn The Full Qualified Domain Name of your DNS zone. If not provided implies that the zone already exist. string "" no
public Visibility of your zone. bool true no
records List of your DNS records.
map(object({
name = string
type = string
rrdatas = list(string)
ttl = number
}))
{} no

Outputs

Name Description
managed_zone_id ID of the deployed DNS zone.
managed_zone_ns Delegate your managed_zone to these virtual name servers.

License

License

See LICENSE for full details.

Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.  See the NOTICE file
distributed with this work for additional information
regarding copyright ownership.  The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License.  You may obtain a copy of the License at

  https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied.  See the License for the
specific language governing permissions and limitations
under the License.

terraform-google-dns's People

Contributors

alan-pad avatar baptistg avatar choucroute-volante avatar dixneuf19 avatar edix9 avatar fabiopadok avatar github-actions[bot] avatar julienjourdain avatar kebab-volant avatar kimelyne avatar nlevee avatar padok-enabler-github-app[bot] avatar piaverous avatar renovate[bot] avatar sholine avatar smeelock avatar spoukke avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

terraform-google-dns's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/release-please.yml
  • google-github-actions/release-please-action v3
.github/workflows/terraform-quality.yml
  • padok-team/github-workflows v1
npm
package.json
terraform
versions.tf
  • google >= 4.12
  • hashicorp/terraform >= 1.0.0
tflint-plugin
.tflint.hcl
  • terraform-linters/tflint-ruleset-google 0.24.0

  • Check this box to trigger a request for Renovate to run again on this repository

Poor output naming

The outputs have a dns_ prefix. Since it is the dns module, it is not needed

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.