GithubHelp home page GithubHelp logo

isabella232 / terraform-dnsimple-cts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dnsimple/terraform-dnsimple-cts

0.0 0.0 0.0 24 KB

DNSimple Consult-Terraform-Sync NIA integration to manage your DNS records.

Home Page: https://registry.terraform.io/modules/dnsimple/cts/dnsimple

License: Mozilla Public License 2.0

Shell 15.29% HCL 84.71%

terraform-dnsimple-cts's Introduction

DNSimple Consul-Terraform-Sync NIA module

Requirements

Using the sync task

Define the task in your HCL config file like so:

# Task Block
task {
  name        = "dnsimple-task"
  description = "Create/delete/update DNS records"
  module      = "dnsimple/cts/dnsimple"

  condition "services" {
    names = ["web", "api"]
  }
  variable_files = ["/terraform.tfvars"]
}

For a complete example of what a HCL config file might look like refer to test/cts-config.hcl

Ensure the services that you have specified have the following parameters added in their meta section:

  • meta.zone_name:string - The zone (domain name) that is managed through DNSimple. e.g. vegan.pizza
  • meta.record_name:string - A valid label to create an A record in the specified zone. e.g. api which will result in api.vegan.pizza
  • meta.record_ttl:string - (Optional) Valid TTL value which will be used for the A record. e.g. 600 - 10 minutes

For an exmaple please refer to test/web-service.json. And DNSimple Provider.

Developing the Provider

Please refer to CONTRIBUTING.md.

Requirements

Name Version
dnsimple >= 0.11.x

Providers

Name Version
dnsimple >= 0.11.x

Modules

No modules.

Resources

Name Type
dnsimple_zone_record.records_a resource

Inputs

Name Description Type Default Required
dnsimple_account The DNSimple account ID string n/a yes
dnsimple_sandbox If true, use the sandbox API endpoint bool n/a yes
dnsimple_token The API token used by DNSimple provider string n/a yes
services Consul services monitored by Consul NIA
map(
object({
id = string
name = string
address = string
port = number
meta = map(string)
tags = list(string)
namespace = string
status = string

node = string
node_id = string
node_address = string
node_datacenter = string
node_tagged_addresses = map(string)
node_meta = map(string)
})
)
n/a yes

Outputs

Name Description
service_map n/a

terraform-dnsimple-cts's People

Contributors

dxtimer avatar ecomba avatar weppos 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.