Skip to content

Commit

Permalink
fix: Prevent provider inference warning (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickmoore-nc authored Dec 16, 2024
1 parent f9a7c4a commit 4f2d931
Show file tree
Hide file tree
Showing 5 changed files with 69 additions and 143 deletions.
38 changes: 0 additions & 38 deletions infrastructure/modules/private-link-scope/main.tf

This file was deleted.

3 changes: 0 additions & 3 deletions infrastructure/modules/private-link-scope/output.tf

This file was deleted.

41 changes: 0 additions & 41 deletions infrastructure/modules/private-link-scope/variables.tf

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
}
}
}
123 changes: 62 additions & 61 deletions infrastructure/modules/shared-config/output.tf
Original file line number Diff line number Diff line change
Expand Up @@ -46,67 +46,68 @@ locals {
}
}

app-insights = lower("APPI-${var.env}-${var.location_map[var.location]}-${var.application}")
app-service-plan = lower("ASP-${var.env}-${var.location_map[var.location]}-${var.application}")
app-service = lower("AS-${var.env}-${var.location_map[var.location]}-${var.application}")
availability-set = lower("AVS-${var.env}-${var.location_map[var.location]}-${var.application}")
avd-dag = lower("AVDDAG-${var.env}-${var.location_map[var.location]}")
avd-host = lower("AVDSH-${var.env}-${var.location_map[var.location]}")
avd-host-pool = lower("AVDHP-${var.env}-${var.location_map[var.location]}")
avd-workspace = lower("AVDWS-${var.env}-${var.location_map[var.location]}")
azure-container-registry = lower("ACR${var.location_map[var.location]}${var.application}${var.env}")
connection = lower("CON-${var.env}-${var.location_map[var.location]}-${var.application}")
custom-image = lower("IMAGE-${var.env}-${var.location_map[var.location]}")
dev-center = lower("DEVC-${var.env}-${var.location_map[var.location]}")
dev-center-project = lower("prj-${var.env}-${var.location_map[var.location]}")
dns-zone = "${lower(var.application)}.${lower(var.env)}.net"
docker-dtr = lower("DTR-${var.env}-${var.location_map[var.location]}-${var.application}")
docker-manager = lower("UCP-${var.env}-${var.location_map[var.location]}-${var.application}")
docker-worker = lower("LWK-${var.env}-${var.location_map[var.location]}-${var.application}")
docker-worker-windows = lower("WWK-${var.env}-${var.location_map[var.location]}-${var.application}")
docker-worker-windows-nb = lower("WWK${var.env}${var.location_map[var.location]}${var.application}")
external-load-balancer = lower("ELB-${var.env}-${var.location_map[var.location]}-${var.application}")
event-grid-topic = lower("EVGT-${var.env}-${var.location_map[var.location]}")
event-hub-namespace = lower("EVHNS-${var.env}-${var.location_map[var.location]}-${var.application}")
firewall = lower("FW-${var.env}-${var.location_map[var.location]}-${var.application}")
function-app = lower("${var.env}-${var.location_map[var.location]}")
internal-load-balancer = lower("ILB-${var.env}-${var.location_map[var.location]}-${var.application}")
key-vault = upper("KV-${var.application}-${var.env}-${var.location_map[var.location]}")
kubernetes-service = lower("AKS-${var.env}-${var.location_map[var.location]}-${var.application}")
load-balancer = lower("LB-${var.env}-${var.location_map[var.location]}-${var.application}")
local-network-gateway = lower("LNG-${var.env}-${var.location_map[var.location]}-${var.application}")
log-analytics-workspace = lower("LAW-${var.env}-${var.location_map[var.location]}-${var.application}")
logic-app = lower("LA-${var.env}-${var.location_map[var.location]}-${var.application}")
managed-devops-pool = lower("private-pool-${var.env}-${var.location_map[var.location]}")
network-interface = upper("${var.env}-${var.location_map[var.location]}-${var.application}")
network-security-group = upper("NSG-${var.env}-${var.location_map[var.location]}-${var.application}")
postgres-sql-server = lower("postgres-${var.application}-${var.env}-${var.location_map[var.location]}")
private-ssh-key = lower("ssh-pri-${var.env}${var.location_map[var.location]}${var.application}")
private-link-scope = lower("ampls-${var.env}${var.location_map[var.location]}${var.application}")
private-link-scoped-service = lower("ampls-svc-${var.env}${var.location_map[var.location]}${var.application}")
public-ip-address = lower("PIP-${var.env}-${var.location_map[var.location]}-${var.application}")
public-ip-dns = lower("${var.env}${var.location_map[var.location]}${var.application}")
public-ssh-key = lower("ssh-pub-${var.env}${var.location_map[var.location]}${var.application}")
redis-cache = lower("RC-${var.location_map[var.location]}-${var.env}-${var.application}")
resource-group = lower("RG-${var.application}-${var.env}-${var.location_map[var.location]}")
resource-application = lower("${var.env}-${var.location_map[var.location]}-${var.application}")
route-table = lower("RT-${var.env}-${var.location_map[var.location]}-${var.application}")
service-bus = lower("SB-${var.location_map[var.location]}-${var.env}-${var.application}")
service-principal = upper("SP-${var.env}-${var.application}")
sql-server = lower("SQLSVR-${var.application}-${var.env}-${var.location_map[var.location]}")
sql-server-db = lower("SQLDB-${var.application}-${var.env}-${var.location_map[var.location]}")
sql-server-managed-instance = lower("SQLMI-${var.env}-${var.location_map[var.location]}-${var.application}")
stack-dns-suffix = "${lower(var.env)}${lower(var.application)}"
storage-account = substr(lower("ST${var.application}${var.env}${var.location_map[var.location]}"), 0, 24)
storage-alerts = lower("STALERT${var.env}${var.location_map[var.location]}${var.application}")
storage-boot-diags = lower("STDIAG${var.env}${var.location_map[var.location]}${var.application}")
storage-flow-logs = lower("STFLOW${var.env}${var.location_map[var.location]}${var.application}")
storage-shared-state = lower("STSTATE${var.env}${var.location_map[var.location]}${var.application}")
subnet = upper("SN-${var.env}-${var.location_map[var.location]}-${var.application}")
virtual-machine = lower("${var.env}-${var.application}")
win-virtual-machine = lower("${var.env}-${var.application}")
virtual-network = upper("VNET-${var.env}-${var.location_map[var.location]}-${var.application}")
vnet-gateway = lower("GWY-${var.env}-${var.location_map[var.location]}-${var.application}")
app-insights = lower("APPI-${var.env}-${var.location_map[var.location]}-${var.application}")
app-service-plan = lower("ASP-${var.env}-${var.location_map[var.location]}-${var.application}")
app-service = lower("AS-${var.env}-${var.location_map[var.location]}-${var.application}")
availability-set = lower("AVS-${var.env}-${var.location_map[var.location]}-${var.application}")
avd-dag = lower("AVDDAG-${var.env}-${var.location_map[var.location]}")
avd-host = lower("AVDSH-${var.env}-${var.location_map[var.location]}")
avd-host-pool = lower("AVDHP-${var.env}-${var.location_map[var.location]}")
avd-workspace = lower("AVDWS-${var.env}-${var.location_map[var.location]}")
azure-container-registry = lower("ACR${var.location_map[var.location]}${var.application}${var.env}")
connection = lower("CON-${var.env}-${var.location_map[var.location]}-${var.application}")
custom-image = lower("IMAGE-${var.env}-${var.location_map[var.location]}")
dev-center = lower("DEVC-${var.env}-${var.location_map[var.location]}")
dev-center-project = lower("prj-${var.env}-${var.location_map[var.location]}")
dns-zone = "${lower(var.application)}.${lower(var.env)}.net"
docker-dtr = lower("DTR-${var.env}-${var.location_map[var.location]}-${var.application}")
docker-manager = lower("UCP-${var.env}-${var.location_map[var.location]}-${var.application}")
docker-worker = lower("LWK-${var.env}-${var.location_map[var.location]}-${var.application}")
docker-worker-windows = lower("WWK-${var.env}-${var.location_map[var.location]}-${var.application}")
docker-worker-windows-nb = lower("WWK${var.env}${var.location_map[var.location]}${var.application}")
external-load-balancer = lower("ELB-${var.env}-${var.location_map[var.location]}-${var.application}")
event-grid-topic = lower("EVGT-${var.env}-${var.location_map[var.location]}")
event-hub-namespace = lower("EVHNS-${var.env}-${var.location_map[var.location]}-${var.application}")
firewall = lower("FW-${var.env}-${var.location_map[var.location]}-${var.application}")
function-app = lower("${var.env}-${var.location_map[var.location]}")
internal-load-balancer = lower("ILB-${var.env}-${var.location_map[var.location]}-${var.application}")
key-vault = upper("KV-${var.application}-${var.env}-${var.location_map[var.location]}")
kubernetes-service = lower("AKS-${var.env}-${var.location_map[var.location]}-${var.application}")
load-balancer = lower("LB-${var.env}-${var.location_map[var.location]}-${var.application}")
local-network-gateway = lower("LNG-${var.env}-${var.location_map[var.location]}-${var.application}")
log-analytics-workspace = lower("LAW-${var.env}-${var.location_map[var.location]}-${var.application}")
logic-app = lower("LA-${var.env}-${var.location_map[var.location]}-${var.application}")
managed-devops-pool = lower("private-pool-${var.env}-${var.location_map[var.location]}")
network-interface = upper("${var.env}-${var.location_map[var.location]}-${var.application}")
network-security-group = upper("NSG-${var.env}-${var.location_map[var.location]}-${var.application}")
postgres-sql-server = lower("postgres-${var.application}-${var.env}-${var.location_map[var.location]}")
private-ssh-key = lower("ssh-pri-${var.env}${var.location_map[var.location]}${var.application}")
private-link-scope = lower("ampls-${var.env}${var.application}")
private-link-scope-private-endpoint = lower("ampls-${var.env}${var.location_map[var.location]}${var.application}-private-endpoint")
private-link-scoped-service = lower("ampls-svc-${var.env}${var.location_map[var.location]}${var.application}")
public-ip-address = lower("PIP-${var.env}-${var.location_map[var.location]}-${var.application}")
public-ip-dns = lower("${var.env}${var.location_map[var.location]}${var.application}")
public-ssh-key = lower("ssh-pub-${var.env}${var.location_map[var.location]}${var.application}")
redis-cache = lower("RC-${var.location_map[var.location]}-${var.env}-${var.application}")
resource-group = lower("RG-${var.application}-${var.env}-${var.location_map[var.location]}")
resource-application = lower("${var.env}-${var.location_map[var.location]}-${var.application}")
route-table = lower("RT-${var.env}-${var.location_map[var.location]}-${var.application}")
service-bus = lower("SB-${var.location_map[var.location]}-${var.env}-${var.application}")
service-principal = upper("SP-${var.env}-${var.application}")
sql-server = lower("SQLSVR-${var.application}-${var.env}-${var.location_map[var.location]}")
sql-server-db = lower("SQLDB-${var.application}-${var.env}-${var.location_map[var.location]}")
sql-server-managed-instance = lower("SQLMI-${var.env}-${var.location_map[var.location]}-${var.application}")
stack-dns-suffix = "${lower(var.env)}${lower(var.application)}"
storage-account = substr(lower("ST${var.application}${var.env}${var.location_map[var.location]}"), 0, 24)
storage-alerts = lower("STALERT${var.env}${var.location_map[var.location]}${var.application}")
storage-boot-diags = lower("STDIAG${var.env}${var.location_map[var.location]}${var.application}")
storage-flow-logs = lower("STFLOW${var.env}${var.location_map[var.location]}${var.application}")
storage-shared-state = lower("STSTATE${var.env}${var.location_map[var.location]}${var.application}")
subnet = upper("SN-${var.env}-${var.location_map[var.location]}-${var.application}")
virtual-machine = lower("${var.env}-${var.application}")
win-virtual-machine = lower("${var.env}-${var.application}")
virtual-network = upper("VNET-${var.env}-${var.location_map[var.location]}-${var.application}")
vnet-gateway = lower("GWY-${var.env}-${var.location_map[var.location]}-${var.application}")
}
}

Expand Down

0 comments on commit 4f2d931

Please sign in to comment.