Skip to content

Commit

Permalink
fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
13archit committed Sep 13, 2024
1 parent a63e46a commit 3da5a47
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,4 @@
secrets:
GITHUB: ${{ secrets.GITHUB }}
with:
tfcheck: 'example-complete / Check code format'
...
tfcheck: 'example-complete / Check code format'
2 changes: 1 addition & 1 deletion examples/complete/example.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
provider "azurerm" {
subscription_id = "068245d4-3c94-42fe-9c4d-9e5e1cabc60c"
subscription_id = "000000-11111-1223-XXX-XXXXXXXXXXXX"
features {
resource_group {
prevent_deletion_if_contains_resources = false
Expand Down
10 changes: 5 additions & 5 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ resource "azurerm_monitor_private_link_scoped_service" "main" {
count = var.enabled && var.ampls_enabled && var.enable_private_endpoint && var.diff_sub == false ? length(var.linked_resource_ids) : 0
name = format("%s-amplsservice-%s", module.labels.id, count.index + 1)
resource_group_name = var.resource_group_name
scope_name = join("", azurerm_monitor_private_link_scope.main.*.name)
scope_name = azurerm_monitor_private_link_scope.main[0].name
linked_resource_id = element(var.linked_resource_ids, count.index)
}

Expand All @@ -50,13 +50,13 @@ resource "azurerm_private_endpoint" "this" {

private_dns_zone_group {
name = "default"
private_dns_zone_ids = azurerm_private_dns_zone.main.*.id
private_dns_zone_ids = [azurerm_private_dns_zone.main[0].id]
}

private_service_connection {
name = format("%s-ampls-psc", module.labels.id)
is_manual_connection = false
private_connection_resource_id = var.azurerm_monitor_private_link_scope_id == null ? join("", azurerm_monitor_private_link_scope.main.*.id) : var.azurerm_monitor_private_link_scope_id
private_connection_resource_id = var.azurerm_monitor_private_link_scope_id == null ? azurerm_monitor_private_link_scope.main[0].id : var.azurerm_monitor_private_link_scope_id
subresource_names = ["azuremonitor"]
}
}
Expand All @@ -78,13 +78,13 @@ resource "azurerm_private_endpoint" "diff_sub_pe" {

private_dns_zone_group {
name = "default"
private_dns_zone_ids = azurerm_private_dns_zone.diff_sub.*.id
private_dns_zone_ids = azurerm_private_dns_zone.diff_sub[0].id
}

private_service_connection {
name = format("%s-ampls-psc", module.labels.id)
is_manual_connection = false
private_connection_resource_id = var.azurerm_monitor_private_link_scope_id == null ? join("", azurerm_monitor_private_link_scope.main.*.id) : var.azurerm_monitor_private_link_scope_id
private_connection_resource_id = var.azurerm_monitor_private_link_scope_id == null ? join("", azurerm_monitor_private_link_scope.main[0].id) : var.azurerm_monitor_private_link_scope_id
subresource_names = ["azuremonitor"]
}
}

0 comments on commit 3da5a47

Please sign in to comment.