项目作者: terraform-google-modules

项目描述 :
This module creates a DNS record on the .cloud.goog domain using Cloud Endpoints.
高级语言: HCL
项目地址: git://github.com/terraform-google-modules/terraform-google-endpoints-dns.git
创建时间: 2018-09-23T23:00:38Z
项目社区:https://github.com/terraform-google-modules/terraform-google-endpoints-dns

开源协议:Apache License 2.0

下载


Cloud Endpoints DNS Module for Terraform

This module creates a DNS record on the .cloud.goog domain using Cloud Endpoints.

The endpoint service is bound to any given IP address and gives you a known DNS record in the form of: NAME.endpoints.PROJECT.cloud.goog

Some example use cases include:

  • Obtaining a free DNS record for use with examples, demos or prototypes.
  • Obtaining a free DNS record to use in conjunction with a SSL certificate.
  • Obtaining a free DNS record to use with the Google Cloud Load Balancer to enable features like IAP which require a known DNS, and valid SSL certificate.
  • Obtaining multiple canonical DNS records scoped within a project for a multi-tennant service deployment, like hosting Jupyter notebooks or Wordpress sites.
  • Creating a programatic DNS record that can be used as a target for a CNAME record of a domain you already own but don’t want to update very often.

Compatibility

This module is meant for use with Terraform 0.13. If you haven’t
upgraded and need a Terraform
0.12.x-compatible version of this module, the last released version
intended for Terraform 0.12.x is v2.0.1.

Usage

  1. module "cloud-ep-dns" {
  2. source = "terraform-google-modules/endpoints-dns/google"
  3. project = "${data.google_client_config.current.project}"
  4. name = "myservice"
  5. external_ip = "${google_compute_instance.default.network_interface.0.access_config.0.assigned_nat_ip}"
  6. }