$ terraform console
> azurerm_resource_group.test.name
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x1755a04]
goroutine 1 [running]:
github.com/hashicorp/terraform/config/module.(*Tree).Config(...)
/Users/tharvey/code/src/github.com/hashicorp/terraform/config/module/tree.go:78
github.com/hashicorp/terraform/terraform.(*Interpolater).resourceVariableInfo(0xc420434440, 0xc4204058d0, 0xc42046e000, 0xc4202f4400, 0x2e5ef00, 0x396bb60, 0x0)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "azurerm_resource_group" "test" { | |
name = "tharvey-dev7986" | |
location = "West Europe" | |
} | |
resource "azurerm_network_security_group" "test" { | |
name = "tharvey-dev7986nsg" | |
location = "${azurerm_resource_group.test.location}" | |
resource_group_name = "${azurerm_resource_group.test.name}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "azurerm_resource_group" "test" { | |
name = "tharvey-dev7986" | |
location = "West Europe" | |
} | |
resource "azurerm_virtual_network" "test" { | |
name = "tharveydev7986nw" | |
address_space = ["10.0.0.0/16"] | |
resource_group_name = "${azurerm_resource_group.test.name}" | |
location = "${azurerm_resource_group.test.location}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "azurerm_resource_group" "test" { | |
name = "bug-test21" | |
location = "West Europe" | |
} | |
resource "azurerm_virtual_network" "vnet" { | |
name = "mynetwork" | |
resource_group_name = "${azurerm_resource_group.test.name}" | |
address_space = ["10.0.0.0/8"] | |
location = "${azurerm_resource_group.test.location}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
variable "prefix" { | |
default = "bug199" | |
} | |
resource "azurerm_resource_group" "test" { | |
name = "${var.prefix}-dev" | |
location = "West Europe" | |
} | |
resource "azurerm_virtual_network" "test" { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<WadCfg><DiagnosticMonitorConfiguration overallQuotaInMB="4096"><DiagnosticInfrastructureLogs scheduledTransferPeriod="PT1M" scheduledTransferLogLevelFilter="Warning"/><PerformanceCounters scheduledTransferPeriod="PT1M"><PerformanceCounterConfiguration counterSpecifier="\Processor(_Total)\% Processor Time" sampleRate="PT15S" unit="Percent"><annotation displayName="CPU utilization" locale="en-us"/></PerformanceCounterConfiguration><PerformanceCounterConfiguration counterSpecifier="\Processor(_Total)\% Privileged Time" sampleRate="PT15S" unit="Percent"><annotation displayName="CPU privileged time" locale="en-us"/></PerformanceCounterConfiguration><PerformanceCounterConfiguration counterSpecifier="\Processor(_Total)\% User Time" sampleRate="PT15S" unit="Percent"><annotation displayName="CPU user time" locale="en-us"/></PerformanceCounterConfiguration><PerformanceCounterConfiguration counterSpecifier="\Processor Information(_Total)\Processor Frequency" sampleRate="PT15S" unit="Count"><annotation displayName="CPU |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
variable "prefix" { | |
default = "issue199" | |
} | |
variable "configuration_json" { | |
default = "{\"diagnosticMonitorConfiguration\":{\"metrics\":{\"resourceId\":\"%VirtualMachineResourceId%\",\"metricAggregation\":[{\"scheduledTransferPeriod\":\"PT1H\"},{\"scheduledTransferPeriod\":\"PT1M\"}]},\"performanceCounters\":{\"performanceCounterConfiguration\":[{\"class\":\"Memory\",\"counterSpecifier\":\"PercentAvailableMemory\",\"table\":\"LinuxMemory\"},{\"class\":\"Memory\",\"counterSpecifier\":\"AvailableMemory\",\"table\":\"LinuxMemory\"},{\"class\":\"Memory\",\"counterSpecifier\":\"UsedMemory\",\"table\":\"LinuxMemory\"},{\"class\":\"Memory\",\"counterSpecifier\":\"PercentUsedSwap\",\"table\":\"LinuxMemory\"},{\"class\":\"Processor\",\"counterSpecifier\":\"PercentProcessorTime\",\"table\":\"LinuxCpu\"},{\"class\":\"Processor\",\"counterSpecifier\":\"PercentIOWaitTime\",\"table\":\"LinuxCpu\"},{\"class\":\"Processor\",\"counterSpecifier\":\"PercentIdleTime\",\"table\":\"LinuxCpu\"},{\"class\":\"PhysicalDisk\",\"cou |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerRegistry", | |
"namespace": "Microsoft.ContainerRegistry", | |
"authorization": { | |
"applicationId": "00000000-0000-0000-0000-000000000000", | |
"roleDefinitionId": "00000000-0000-0000-0000-000000000000" | |
}, | |
"resourceTypes": [ | |
{ | |
"resourceType": "registries", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "tom-devnetwork", | |
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tom-devrg78/providers/Microsoft.Network/virtualNetworks/tom-devnetwork", | |
"etag": "W/\"588344cf-6616-4a6c-ab6a-db7eefea17b7\"", | |
"type": "Microsoft.Network/virtualNetworks", | |
"location": "westeurope", | |
"tags": {}, | |
"properties": { | |
"provisioningState": "Succeeded", | |
"resourceGuid": "ea4e8735-f1e6-4b35-b0c2-361c7ff735cf", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "hello world" |