Skip to content

Modify Terraform deployments to Dismiss tflocal CLI#44

Merged
paolosalvatori merged 3 commits into
mainfrom
updates
Feb 17, 2026
Merged

Modify Terraform deployments to Dismiss tflocal CLI#44
paolosalvatori merged 3 commits into
mainfrom
updates

Conversation

@paolosalvatori
Copy link
Copy Markdown
Contributor

Changes

This pull request dismisses tflocal from all the deploy.sh scripts in the terraform folders and replace it with the terraform CLI. In addition, the pull request modifies the azurerm provider configuration as follows:

provider "azurerm" {
  features {
    resource_group {
      prevent_deletion_if_contains_resources = false
    }
  }

  # Set the hostname of the Azure Metadata Service (for example management.azure.com) 
  # used to obtain the Cloud Environment when using LocalStack's Azure emulator. 
  # This allows the provider to correctly identify the environment and avoid making calls to the real Azure endpoints. 
  metadata_host="localhost.localstack.cloud:4566"

  # Set the subscription ID to a dummy value when using LocalStack's Azure emulator.
  subscription_id = "00000000-0000-0000-0000-000000000000"
}

Testing

The Terraform deployment of all the samples were successfully evaluated against the LocalStack for Azure emulator on the local environment.

Copy link
Copy Markdown
Contributor

@DrisDary DrisDary left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Paolo 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants