Skip to content

Commit

Permalink
fix: fixed terraform_deprecated_index error for parent module
Browse files Browse the repository at this point in the history
  • Loading branch information
Tanishdrove committed Sep 12, 2024
1 parent 8fbcb8e commit 78b178f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ updates:
directory: "example/basic" # Location of package manifests
schedule:
interval: "weekly"
- package-ecosystem: "terraform" # See documentation for possible values
directory: "example/complete" # Location of package manifests
schedule:
interval: "weekly"
- package-ecosystem: "terraform" # See documentation for possible values
directory: "example/queue" # Location of package manifests
schedule:
Expand Down
3 changes: 1 addition & 2 deletions examples/complete/example.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
provider "azurerm" {
features {}
# subscription_id = "000000-11111-1223-XXX-XXXXXXXXXXXX"
subscription_id = "068245d4-3c94-42fe-9c4d-9e5e1cabc60c"
subscription_id = "000000-11111-1223-XXX-XXXXXXXXXXXX"
}

locals {
Expand Down
8 changes: 4 additions & 4 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ resource "azurerm_servicebus_topic_authorization_rule" "main" {
count = length(local.topic_authorization_rules)

name = local.topic_authorization_rules[count.index].name
topic_id = azurerm_servicebus_topic.main.*.id[count.index]
topic_id = azurerm_servicebus_topic.main[count.index].id

listen = contains(local.topic_authorization_rules[count.index].rights, "listen") ? true : false
send = contains(local.topic_authorization_rules[count.index].rights, "send") ? true : false
Expand All @@ -179,7 +179,7 @@ resource "azurerm_servicebus_subscription" "main" {
count = length(local.topic_subscriptions)

name = local.topic_subscriptions[count.index].name
topic_id = azurerm_servicebus_topic.main.*.id[count.index]
topic_id = azurerm_servicebus_topic.main[count.index].id

max_delivery_count = local.topic_subscriptions[count.index].max_delivery_count
auto_delete_on_idle = local.topic_subscriptions[count.index].auto_delete_on_idle
Expand All @@ -199,7 +199,7 @@ resource "azurerm_servicebus_subscription_rule" "main" {

name = local.topic_subscription_rules[count.index].name

subscription_id = azurerm_servicebus_subscription.main.*.id[count.index]
subscription_id = azurerm_servicebus_subscription.main[count.index].id
filter_type = local.topic_subscription_rules[count.index].sql_filter != "" ? "SqlFilter" : null
sql_filter = local.topic_subscription_rules[count.index].sql_filter
action = local.topic_subscription_rules[count.index].action
Expand Down Expand Up @@ -231,7 +231,7 @@ resource "azurerm_servicebus_queue_authorization_rule" "main" {
count = length(local.queue_authorization_rules)

name = local.queue_authorization_rules[count.index].name
queue_id = azurerm_servicebus_queue.main.*.id[count.index]
queue_id = azurerm_servicebus_queue.main[count.index].id

listen = contains(local.queue_authorization_rules[count.index].rights, "listen") ? true : false
send = contains(local.queue_authorization_rules[count.index].rights, "send") ? true : false
Expand Down

0 comments on commit 78b178f

Please sign in to comment.