-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Azure vnet flow logs support in tf module
- Loading branch information
1 parent
867d757
commit 8dc7d94
Showing
7 changed files
with
50 additions
and
71 deletions.
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
# Provide service principal Contributor role to each storage account | ||
resource "azurerm_role_assignment" "kentic_role_contributor" { | ||
count = length(azurerm_storage_account.logs_storage_account) | ||
for_each = azurerm_storage_account.logs_storage_account | ||
|
||
scope = azurerm_storage_account.logs_storage_account[count.index].id | ||
scope = each.value.id | ||
role_definition_name = "Contributor" | ||
principal_id = local.kentik_nsg_flow_exporter_id | ||
} | ||
|
||
# Provide service principal Reader role to each Resource Group | ||
resource "azurerm_role_assignment" "kentic_role_reader" { | ||
count = length(var.resource_group_names) | ||
for_each = toset(var.resource_group_names) | ||
|
||
scope = "/subscriptions/${var.subscription_id}/resourceGroups/${var.resource_group_names[count.index]}" | ||
scope = "/subscriptions/${var.subscription_id}/resourceGroups/${each.value}" | ||
role_definition_name = "Reader" | ||
principal_id = local.kentik_nsg_flow_exporter_id | ||
} |
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
This file was deleted.
Oops, something went wrong.