https://github.com/keithrozario/terraform-google-domain-tls
Terraform Module for Google Cloud Domain Entry and TLS Certificate creation
https://github.com/keithrozario/terraform-google-domain-tls
Last synced: 30 days ago
JSON representation
Terraform Module for Google Cloud Domain Entry and TLS Certificate creation
- Host: GitHub
- URL: https://github.com/keithrozario/terraform-google-domain-tls
- Owner: keithrozario
- Created: 2025-08-22T08:35:23.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2025-08-22T08:49:55.000Z (about 2 months ago)
- Last Synced: 2025-08-22T10:33:48.739Z (about 2 months ago)
- Language: HCL
- Size: 3.91 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Terraform Domain Entry and TLS Cert module
This module is meant to simplfy the creation of a domain entry and TLS Certifcate especially if the DNS management is delegated to another google cloud project.
# Usage
```hcl
module "tf_domain_and_tls" {
source = "keithrozario/domain-tls/google"
sub_domain = "sub"
rrdatas = ["123.4.5.6"]
record_type = "A"
base_domain = "example.com"
dns_project_name = "project-123"
dns_zone_name = "zone-123"
region = "us-central1"
}
```## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| sub_domain | The Subdomain of the FQDN to deploy | string | none | yes|
| rrdatas | The rrdata field to enter in the DNS entry. e.g. ["123.4.5.6","234.5.6.7"] | list(str) | none | yes
| record_type | The record type of the DNS entry. | string | "A" | no
| base_domain | The base domain of the FQDN to deploy | string | none | yes
| dns_project_name | The GCP Project ID that contains the DNS ZONE in Cloud DNS | string | none | yes
| dns_zone_name | The name of the DNS ZONE in Cloud DNS | string | none | yes
| region | The region to deploy the certificate in | string | none | yes## Outputs
| Name | Description | Type |
|------|-------------|------|
| certificate_map_id | The Certficate Map ID created for the certificate | string |
| ssl_certificates | The SSL Certificate Location beginning with `/certificatemanager.googleapis.com/`| string |