Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gcp cloud dns #128

Merged
merged 7 commits into from
Jan 12, 2022
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions INDEX.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
| `google_compute_instance` | [google, gcp_instance](google/google_compute_instance/simple) |
| `google_compute_network` | [google](google/google_compute_network/simple) |
| `google_container_cluster` | [google, GKE](google/google_container_cluster/simple) <p/> [separate_node_pool](google/google_container_cluster/separate_node_pool) <p/> [cluster_and_deployment](google/google_container_cluster/cluster_and_deployment) <p/> [vpc_native_cluster](google/google_container_cluster/vpc_native_cluster) <p/> [autopilot](google/google_container_cluster/autopilot) |
| `google_dns_managed_zone` | [google](google/google_dns_managed_zone/simple) |
| `google_storage_bucket` | [google, gcs_bucket](google/google_storage_bucket/simple) |
| `helm_release` | [simple](helm/helm_release/simple) <p/> [values_from_file](helm/helm_release/values_from_file) |
| `inline` | [aws, remote-exec](aws/aws_instance/remote-exec/inline/) |
Expand Down
2 changes: 2 additions & 0 deletions google/google_dns_managed_zone/simple/destroy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
../../../bin/destroy.sh google
32 changes: 32 additions & 0 deletions google/google_dns_managed_zone/simple/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Summary: Creates the simplest DNS managed zone

# Documentation: https://www.terraform.io/docs/language/settings/index.html
terraform {
required_version = ">= 1.0.0"
required_providers {
google = {
source = "hashicorp/google"
version = "~> 3.0"
}
}
}

# Documentation: https://www.terraform.io/docs/language/providers/requirements.html
provider "google" {
project = var.project_id
region = "us-central1"
zone = "us-central1-a"
}

# Documentation: https://www.terraform.io/docs/language/values/variables.html
variable "project_id" {
type = string
}

# DNS Managed Zone
# Documentation: https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/dns_managed_zone
resource "google_dns_managed_zone" "changeme_simple_zone" {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can rename the example to: changeme_private_zone. And rename the folder too.

name = "changeme-simple-zone"
dns_name = "changeme-simple-zone.com."
visibility = "private"
}
2 changes: 2 additions & 0 deletions google/google_dns_managed_zone/simple/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
../../../bin/apply.sh google