Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danieldekock-wintech/32e94d5f90def9372951bfef963aa1d5 to your computer and use it in GitHub Desktop.
Save danieldekock-wintech/32e94d5f90def9372951bfef963aa1d5 to your computer and use it in GitHub Desktop.
Terraform auth rule debugging output
C:\projects\poc>terraform apply
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:
# azurerm_eventhub.eh-debug will be created
+ resource "azurerm_eventhub" "eh-debug" {
+ id = (known after apply)
+ message_retention = 1
+ name = "eh-debug"
+ namespace_name = "ehns-debug"
+ partition_count = 2
+ partition_ids = (known after apply)
+ resource_group_name = "rg-debug"
}
# azurerm_eventhub_authorization_rule.eh-rule["rule1"] will be created
+ resource "azurerm_eventhub_authorization_rule" "eh-rule" {
+ eventhub_name = "eh-debug"
+ id = (known after apply)
+ listen = false
+ manage = false
+ name = "rule1"
+ namespace_name = "ehns-debug"
+ primary_connection_string = (sensitive value)
+ primary_key = (sensitive value)
+ resource_group_name = "rg-debug"
+ secondary_connection_string = (sensitive value)
+ secondary_key = (sensitive value)
+ send = true
}
# azurerm_eventhub_authorization_rule.eh-rule["rule2"] will be created
+ resource "azurerm_eventhub_authorization_rule" "eh-rule" {
+ eventhub_name = "eh-debug"
+ id = (known after apply)
+ listen = false
+ manage = false
+ name = "rule2"
+ namespace_name = "ehns-debug"
+ primary_connection_string = (sensitive value)
+ primary_key = (sensitive value)
+ resource_group_name = "rg-debug"
+ secondary_connection_string = (sensitive value)
+ secondary_key = (sensitive value)
+ send = true
}
# azurerm_eventhub_authorization_rule.eh-rule["rule3"] will be created
+ resource "azurerm_eventhub_authorization_rule" "eh-rule" {
+ eventhub_name = "eh-debug"
+ id = (known after apply)
+ listen = false
+ manage = false
+ name = "rule3"
+ namespace_name = "ehns-debug"
+ primary_connection_string = (sensitive value)
+ primary_key = (sensitive value)
+ resource_group_name = "rg-debug"
+ secondary_connection_string = (sensitive value)
+ secondary_key = (sensitive value)
+ send = true
}
# azurerm_eventhub_authorization_rule.eh-rule["rule4"] will be created
+ resource "azurerm_eventhub_authorization_rule" "eh-rule" {
+ eventhub_name = "eh-debug"
+ id = (known after apply)
+ listen = false
+ manage = false
+ name = "rule4"
+ namespace_name = "ehns-debug"
+ primary_connection_string = (sensitive value)
+ primary_key = (sensitive value)
+ resource_group_name = "rg-debug"
+ secondary_connection_string = (sensitive value)
+ secondary_key = (sensitive value)
+ send = true
}
# azurerm_eventhub_authorization_rule.eh-rule["rule5"] will be created
+ resource "azurerm_eventhub_authorization_rule" "eh-rule" {
+ eventhub_name = "eh-debug"
+ id = (known after apply)
+ listen = false
+ manage = false
+ name = "rule5"
+ namespace_name = "ehns-debug"
+ primary_connection_string = (sensitive value)
+ primary_key = (sensitive value)
+ resource_group_name = "rg-debug"
+ secondary_connection_string = (sensitive value)
+ secondary_key = (sensitive value)
+ send = true
}
# azurerm_eventhub_namespace.ehns-debug will be created
+ resource "azurerm_eventhub_namespace" "ehns-debug" {
+ auto_inflate_enabled = false
+ capacity = 1
+ default_primary_connection_string = (sensitive value)
+ default_primary_key = (sensitive value)
+ default_secondary_connection_string = (sensitive value)
+ default_secondary_key = (sensitive value)
+ id = (known after apply)
+ kafka_enabled = false
+ location = "northeurope"
+ maximum_throughput_units = (known after apply)
+ name = "ehns-debug"
+ network_rulesets = (known after apply)
+ resource_group_name = "rg-debug"
+ sku = "Standard"
+ tags = (known after apply)
}
# azurerm_resource_group.rg-debug will be created
+ resource "azurerm_resource_group" "rg-debug" {
+ id = (known after apply)
+ location = "northeurope"
+ name = "rg-debug"
+ tags = (known after apply)
}
Plan: 8 to add, 0 to change, 0 to destroy.
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
azurerm_resource_group.rg-debug: Creating...
azurerm_resource_group.rg-debug: Creation complete after 5s [id=/subscriptions/7aec1c17-1ef3-4f20-8e67-29d7962c42de/resourceGroups/rg-debug]
azurerm_eventhub_namespace.ehns-debug: Creating...
azurerm_eventhub_namespace.ehns-debug: Still creating... [10s elapsed]
azurerm_eventhub_namespace.ehns-debug: Still creating... [20s elapsed]
azurerm_eventhub_namespace.ehns-debug: Still creating... [30s elapsed]
azurerm_eventhub_namespace.ehns-debug: Still creating... [40s elapsed]
azurerm_eventhub_namespace.ehns-debug: Still creating... [50s elapsed]
azurerm_eventhub_namespace.ehns-debug: Still creating... [1m0s elapsed]
azurerm_eventhub_namespace.ehns-debug: Creation complete after 1m8s [id=/subscriptions/7aec1c17-1ef3-4f20-8e67-29d7962c42de/resourceGroups/rg-debug/providers/Microsoft.EventHub/namespaces/ehns-debug]
azurerm_eventhub.eh-debug: Creating...
azurerm_eventhub.eh-debug: Creation complete after 6s [id=/subscriptions/7aec1c17-1ef3-4f20-8e67-29d7962c42de/resourceGroups/rg-debug/providers/Microsoft.EventHub/namespaces/ehns-debug/eventhubs/eh-debug]
azurerm_eventhub_authorization_rule.eh-rule["rule4"]: Creating...
azurerm_eventhub_authorization_rule.eh-rule["rule3"]: Creating...
azurerm_eventhub_authorization_rule.eh-rule["rule2"]: Creating...
azurerm_eventhub_authorization_rule.eh-rule["rule5"]: Creating...
azurerm_eventhub_authorization_rule.eh-rule["rule1"]: Creating...
azurerm_eventhub_authorization_rule.eh-rule["rule1"]: Creation complete after 5s [id=/subscriptions/7aec1c17-1ef3-4f20-8e67-29d7962c42de/resourceGroups/rg-debug/providers/Microsoft.EventHub/namespaces/ehns-debug/eventhubs/eh-debug/authorizationRules/rule1]
azurerm_eventhub_authorization_rule.eh-rule["rule3"]: Still creating... [10s elapsed]
azurerm_eventhub_authorization_rule.eh-rule["rule3"]: Still creating... [20s elapsed]
azurerm_eventhub_authorization_rule.eh-rule["rule3"]: Still creating... [30s elapsed]
azurerm_eventhub_authorization_rule.eh-rule["rule3"]: Still creating... [40s elapsed]
azurerm_eventhub_authorization_rule.eh-rule["rule3"]: Still creating... [50s elapsed]
azurerm_eventhub_authorization_rule.eh-rule["rule3"]: Still creating... [1m0s elapsed]
azurerm_eventhub_authorization_rule.eh-rule["rule3"]: Still creating... [1m10s elapsed]
azurerm_eventhub_authorization_rule.eh-rule["rule3"]: Still creating... [1m20s elapsed]
azurerm_eventhub_authorization_rule.eh-rule["rule3"]: Still creating... [1m30s elapsed]
azurerm_eventhub_authorization_rule.eh-rule["rule3"]: Still creating... [1m40s elapsed]
azurerm_eventhub_authorization_rule.eh-rule["rule3"]: Still creating... [1m50s elapsed]
azurerm_eventhub_authorization_rule.eh-rule["rule3"]: Still creating... [2m0s elapsed]
azurerm_eventhub_authorization_rule.eh-rule["rule3"]: Still creating... [2m10s elapsed]
azurerm_eventhub_authorization_rule.eh-rule["rule3"]: Still creating... [2m20s elapsed]
azurerm_eventhub_authorization_rule.eh-rule["rule3"]: Still creating... [2m30s elapsed]
azurerm_eventhub_authorization_rule.eh-rule["rule3"]: Still creating... [2m40s elapsed]
azurerm_eventhub_authorization_rule.eh-rule["rule3"]: Still creating... [2m50s elapsed]
azurerm_eventhub_authorization_rule.eh-rule["rule3"]: Still creating... [3m0s elapsed]
azurerm_eventhub_authorization_rule.eh-rule["rule3"]: Still creating... [3m10s elapsed]
azurerm_eventhub_authorization_rule.eh-rule["rule3"]: Still creating... [3m20s elapsed]
azurerm_eventhub_authorization_rule.eh-rule["rule3"]: Still creating... [3m30s elapsed]
azurerm_eventhub_authorization_rule.eh-rule["rule3"]: Still creating... [3m40s elapsed]
azurerm_eventhub_authorization_rule.eh-rule["rule3"]: Still creating... [3m50s elapsed]
azurerm_eventhub_authorization_rule.eh-rule["rule3"]: Creation complete after 3m56s [id=/subscriptions/7aec1c17-1ef3-4f20-8e67-29d7962c42de/resourceGroups/rg-debug/providers/Microsoft.EventHub/namespaces/ehns-debug/eventhubs/eh-debug/authorizationRules/rule3]
Error: eventhub.EventHubsClient#GetAuthorizationRule: Failure responding to request: StatusCode=404 -- Original Error: autorest/azure: Service returned an error. Status=404 Code="NotFound" Message="The requested resource rule2 does not exist. CorrelationId: 9d7b8524-4
7a5-eabe-bd57-fe3960951970"
on main.tf line 41, in resource "azurerm_eventhub_authorization_rule" "eh-rule":
41: resource "azurerm_eventhub_authorization_rule" "eh-rule" {
Error: eventhub.EventHubsClient#GetAuthorizationRule: Failure responding to request: StatusCode=404 -- Original Error: autorest/azure: Service returned an error. Status=404 Code="NotFound" Message="The requested resource rule5 does not exist. CorrelationId: 9d7b8524-4
7a5-eabe-bd57-fe3960951970"
on main.tf line 41, in resource "azurerm_eventhub_authorization_rule" "eh-rule":
41: resource "azurerm_eventhub_authorization_rule" "eh-rule" {
Error: eventhub.EventHubsClient#GetAuthorizationRule: Failure responding to request: StatusCode=404 -- Original Error: autorest/azure: Service returned an error. Status=404 Code="NotFound" Message="The requested resource rule4 does not exist. CorrelationId: 9d7b8524-4
7a5-eabe-bd57-fe3960951970"
on main.tf line 41, in resource "azurerm_eventhub_authorization_rule" "eh-rule":
41: resource "azurerm_eventhub_authorization_rule" "eh-rule" {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment