* Cloud DNS and Shared VPC (#184) * Cloud DNS and Shared VPC module to allow application teams to have their own Cloud DNS configuration. * Cleaning up README.md * Improving Formating. * Adding license to all .tf files. * Removing dead code. * Moving this example into the Cloud Operations folder. * Using fabric resources and refactoring. Only the 'test.example' file is not using the proper modules now. * normalize README, use autogenerated vars table, add types to variables * refactor * simple tests * add diagram, update READMEs Co-authored-by: Aurélien Legrand <aurelien.legrand01@gmail.com>
Usage
/!\ Requires Terraform version 12.20 at least. Visit https://releases.hashicorp.com/terraform/ to get it.
You need to add your own terraform.tfvars with the following values:
organization_id = "<YOUR ORG ID>"
billing_account = "<YOUR BILLING ACCOUNT ID>"
You should create a backend.tf file with the following configuration:
terraform {
required_providers {
google = "~> 3.51.0"
google-beta = "~> 3.51.0"
}
backend "gcs" {
bucket = "<YOUR BUCKET FOR THE TERRAFORM STATE>"
prefix = "<NAME FOR THE TERRAFORM STATE FOLDER>"
}
}
Testing
Optionally, you can rename test.example into test.tf.
This file will create 2 VM instances and corresponding DNS records so you can easily test this solution.
Clean Up
Run terraform destroy to clean up all resources created by this terraform code.