26 lines
821 B
Plaintext
26 lines
821 B
Plaintext
|
|
# Terraform Backend Configuration Example
|
||
|
|
# Copy this to backend.tf and uncomment, or use environment variables
|
||
|
|
|
||
|
|
terraform {
|
||
|
|
backend "azurerm" {
|
||
|
|
# Option 1: Use environment variables (recommended)
|
||
|
|
# Set these in .env or export:
|
||
|
|
# ARM_STORAGE_ACCOUNT_NAME
|
||
|
|
# ARM_CONTAINER_NAME
|
||
|
|
# ARM_RESOURCE_GROUP_NAME
|
||
|
|
# ARM_ACCESS_KEY
|
||
|
|
|
||
|
|
# Option 2: Uncomment and configure below
|
||
|
|
# resource_group_name = "az-p-we-rg-tfstate-001"
|
||
|
|
# storage_account_name = "azpwetfstate001" # Must be globally unique, lowercase, alphanumeric
|
||
|
|
# container_name = "tfstate"
|
||
|
|
# key = "defi-oracle-mainnet.terraform.tfstate"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
# Note: Storage account name must be:
|
||
|
|
# - 3-24 characters
|
||
|
|
# - Lowercase letters and numbers only
|
||
|
|
# - Globally unique across all Azure subscriptions
|
||
|
|
|