https://github.com/nullstone-modules/gcp-subdomain-from-aws
A nullstone module to create a GCP-managed subdomain using an AWS domain
https://github.com/nullstone-modules/gcp-subdomain-from-aws
Last synced: 5 months ago
JSON representation
A nullstone module to create a GCP-managed subdomain using an AWS domain
- Host: GitHub
- URL: https://github.com/nullstone-modules/gcp-subdomain-from-aws
- Owner: nullstone-modules
- License: mit
- Created: 2023-04-19T18:01:54.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2025-01-27T23:24:55.000Z (over 1 year ago)
- Last Synced: 2026-01-30T14:56:09.719Z (6 months ago)
- Language: HCL
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# gcp-subdomain-from-aws
Nullstone module to create a GCP-managed subdomain using an AWS domain.
## Overview
This module creates a DNS Zone on Google Cloud DNS.
By default, this module will create an SSL certificate using GCP Certificate Manager.
This can be disabled by setting the variable `disable_certificate = true`.
This certificate is created for Cloud CDNs and Load Balancing (most common use case).
A certificate and certificate map are created and emitted as outputs for use to attach to a GCP Load Balancer.
The `domain` connection refers to a Nullstone domain that is AWS-managed.
This module performs delegation -- it will add records to the root domain in AWS to direct the subdomain to newly-created GCP DNS Zone.
This allows a user to manage this subdomain fully in GCP without having access to the root domain in AWS.
## Subdomain Calculation
This module adds the current Nullstone environment into the FQDN for the resulting subdomain.
#### Example
Domain: `acme.com`
Env: `dev`
`dns_name`: `api`
FQDN: `api.dev.acme.com`
If `var.create_vanity = true`, then the environment chunk is omitted from the FQDN.
In the above example, the FQDN becomes: `api.acme.com`.
Typically, enabling this variable is done to create a production URL.