Skip to content

Commit 257ba5c

Browse files
committed
removed unnecessary installation
1 parent 0bb72f0 commit 257ba5c

7 files changed

Lines changed: 55 additions & 33 deletions

File tree

.github/workflows/run-samples.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,6 @@ jobs:
5959
sudo apt-get install -y jq zip unixodbc-dev libsnappy-dev
6060
find . -name "*.sh" -exec chmod +x {} +
6161
62-
- name: Install Terraform
63-
# Install Terraform CLI for infrastructure as code deployments.
64-
uses: hashicorp/setup-terraform@v3
65-
with:
66-
terraform_version: "1.5.0"
67-
terraform_wrapper: false
68-
6962
- name: Install test dependencies
7063
# Mirroring the localstack-pro approach: install all Python dependencies
7164
# (including the localstack CLI) into a virtual environment to avoid system-level conflicts.

requirements-runtime.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,3 @@ azure-core
99
python-dotenv
1010
localstack
1111
azlocal
12-
terraform-local

samples/function-app-managed-identity/python/terraform/providers.tf

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
azurerm = {
66
source = "hashicorp/azurerm"
7-
version = "~>4.44.0"
7+
version = "=4.14.0"
88
}
99
}
1010
}
@@ -17,10 +17,16 @@ provider "azurerm" {
1717
}
1818

1919
# LocalStack Azure emulator configuration
20-
# Use Azure CLI authentication (which azlocal intercepts)
20+
# Uses fixed credentials that tflocal intercepts via HTTPS proxy
2121
subscription_id = "00000000-0000-0000-0000-000000000000"
22+
tenant_id = "00000000-0000-0000-0000-000000000000"
23+
client_id = "00000000-0000-0000-0000-000000000000"
24+
client_secret = "fake-secret"
2225

23-
use_cli = true
24-
use_msi = false
25-
use_oidc = false
26+
# Skip provider registration - LocalStack doesn't support this API
27+
skip_provider_registration = true
28+
29+
# Disable CLI/MSI authentication - use static credentials instead
30+
use_cli = false
31+
use_msi = false
2632
}

samples/function-app-storage-http/dotnet/terraform/providers.tf

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
azurerm = {
66
source = "hashicorp/azurerm"
7-
version = "~>4.44.0"
7+
version = "=4.14.0"
88
}
99
}
1010
}
@@ -17,10 +17,16 @@ provider "azurerm" {
1717
}
1818

1919
# LocalStack Azure emulator configuration
20-
# Use Azure CLI authentication (which azlocal intercepts)
20+
# Uses fixed credentials that tflocal intercepts via HTTPS proxy
2121
subscription_id = "00000000-0000-0000-0000-000000000000"
22+
tenant_id = "00000000-0000-0000-0000-000000000000"
23+
client_id = "00000000-0000-0000-0000-000000000000"
24+
client_secret = "fake-secret"
2225

23-
use_cli = true
24-
use_msi = false
25-
use_oidc = false
26+
# Skip provider registration - LocalStack doesn't support this API
27+
skip_provider_registration = true
28+
29+
# Disable CLI/MSI authentication - use static credentials instead
30+
use_cli = false
31+
use_msi = false
2632
}

samples/web-app-cosmosdb-mongodb-api/python/terraform/providers.tf

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
azurerm = {
66
source = "hashicorp/azurerm"
7-
version = "~>4.44.0"
7+
version = "=4.14.0"
88
}
99
}
1010
}
@@ -17,10 +17,16 @@ provider "azurerm" {
1717
}
1818

1919
# LocalStack Azure emulator configuration
20-
# Use Azure CLI authentication (which azlocal intercepts)
20+
# Uses fixed credentials that tflocal intercepts via HTTPS proxy
2121
subscription_id = "00000000-0000-0000-0000-000000000000"
22+
tenant_id = "00000000-0000-0000-0000-000000000000"
23+
client_id = "00000000-0000-0000-0000-000000000000"
24+
client_secret = "fake-secret"
2225

23-
use_cli = true
24-
use_msi = false
25-
use_oidc = false
26+
# Skip provider registration - LocalStack doesn't support this API
27+
skip_provider_registration = true
28+
29+
# Disable CLI/MSI authentication - use static credentials instead
30+
use_cli = false
31+
use_msi = false
2632
}

samples/web-app-managed-identity/python/terraform/providers.tf

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
azurerm = {
66
source = "hashicorp/azurerm"
7-
version = "~>4.44.0"
7+
version = "=4.14.0"
88
}
99
}
1010
}
@@ -17,10 +17,16 @@ provider "azurerm" {
1717
}
1818

1919
# LocalStack Azure emulator configuration
20-
# Use Azure CLI authentication (which azlocal intercepts)
20+
# Uses fixed credentials that tflocal intercepts via HTTPS proxy
2121
subscription_id = "00000000-0000-0000-0000-000000000000"
22+
tenant_id = "00000000-0000-0000-0000-000000000000"
23+
client_id = "00000000-0000-0000-0000-000000000000"
24+
client_secret = "fake-secret"
2225

23-
use_cli = true
24-
use_msi = false
25-
use_oidc = false
26+
# Skip provider registration - LocalStack doesn't support this API
27+
skip_provider_registration = true
28+
29+
# Disable CLI/MSI authentication - use static credentials instead
30+
use_cli = false
31+
use_msi = false
2632
}

samples/web-app-sql-database/python/terraform/providers.tf

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
azurerm = {
66
source = "hashicorp/azurerm"
7-
version = "~>4.44.0"
7+
version = "=4.14.0"
88
}
99
}
1010
}
@@ -17,10 +17,16 @@ provider "azurerm" {
1717
}
1818

1919
# LocalStack Azure emulator configuration
20-
# Use Azure CLI authentication (which azlocal intercepts)
20+
# Uses fixed credentials that tflocal intercepts via HTTPS proxy
2121
subscription_id = "00000000-0000-0000-0000-000000000000"
22+
tenant_id = "00000000-0000-0000-0000-000000000000"
23+
client_id = "00000000-0000-0000-0000-000000000000"
24+
client_secret = "fake-secret"
2225

23-
use_cli = true
24-
use_msi = false
25-
use_oidc = false
26+
# Skip provider registration - LocalStack doesn't support this API
27+
skip_provider_registration = true
28+
29+
# Disable CLI/MSI authentication - use static credentials instead
30+
use_cli = false
31+
use_msi = false
2632
}

0 commit comments

Comments
 (0)