cloud-foundation-fabric/blueprints/cloud-operations/dns-shared-vpc/examples/shared-vpc-example
Sebastian Kunze e4fc47a063
Normalize prefix handling in blueprints (#1003)
2022-11-23 11:09:00 +01:00
..
README.md Rename examples folder to blueprints 2022-09-09 16:38:43 +02:00
network.tf Refactor net-vpc module for Terraform 1.3 (#880) 2022-10-14 11:02:33 +02:00
outputs.tf Rename examples folder to blueprints 2022-09-09 16:38:43 +02:00
projects.tf Leverage new shared VPC project config defaults across the repo 2022-10-07 08:55:47 +02:00
test.example Rename examples folder to blueprints 2022-09-09 16:38:43 +02:00
variables.tf Normalize prefix handling in blueprints (#1003) 2022-11-23 11:09:00 +01:00

README.md

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.