Skip to content

Instantly share code, notes, and snippets.

@alexjmoore
alexjmoore / main.tf
Last active September 22, 2023 17:03
Tag binding issue example
locals {
project_id = "{{YOUR PROJECT ID}}"
region = "europe-west2"
zone = "europe-west2-a"
}
provider "google" {
project = local.project_id
region = local.region
zone = local.zone
This file has been truncated, but you can view the full file.
[2021-03-30T16:04:45.638] [DEBUG] default - Terraform v0.14.9
⠋ starting...
⠋ downloading and generating modules and providers...
⠙ downloading and generating modules and providers...
[2021-03-30T16:04:45.857] [DEBUG] default - Initializing modules...
⠹ downloading and generating modules and providers...
⠸ downloading and generating modules and providers...
[2021-03-30T16:04:46.062] [DEBUG] default - Downloading terraform-google-modules/network/google 3.0.0 for google...
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# google_compute_firewall.fw-testa-allow-all-internal will be created
+ resource "google_compute_firewall" "fw-testa-allow-all-internal" {
+ creation_timestamp = (known after apply)
⠸ Deploying Stack: test
Resources
~ GOOGLE_COMPUTE_FIREW testfw google_compute_firewall.fw-test-allow-all-from-test2
~ GOOGLE_COMPUTE_HA_VP vgw-test google_compute_ha_vpn_gateway.vgw-test
Summary: 0 created, 0 updated, 0 destroyed.
TypeError: Cannot read property 'startsWith' of undefined
at exports.ResourceName (/usr/local/lib/node_modules/cdktf-cli/bin/cmds/ui/components/resource-name.js:12:43)
at Jd (/usr/local/lib/node_modules/cdktf-cli/node_modules/react-reconciler/cjs/react-reconciler.production.min.js:64:98)
at ig (/usr/local/lib/node_modules/cdktf-cli/node_modules/react-reconciler/cjs/react-reconciler.production.min.js:160:456)
@alexjmoore
alexjmoore / azuredeploy.json
Created March 13, 2020 17:34
101-vm-simple-linux extended to add DNS record to existing zone
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"vmName": {
"type": "string",
"defaultValue": "simpleLinuxVM",
"metadata": {
"description": "The name of you Virtual Machine."
}