Skip to content

Commit 42cd54a

Browse files
author
larsb-dev
committed
fix: add arm subscription id to providers.tf
1 parent d942ed3 commit 42cd54a

3 files changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,5 @@ jobs:
4343
- name: Terraform Apply
4444
run: |
4545
terraform init
46-
terraform apply -auto-approve -var="image_tag=${{ github.ref_name }}"
46+
terraform apply -auto-approve -var="image_tag=${{ github.ref_name }}" -var="subscription_id=${{ secrets.AZURE_SUBSCRIPTION_ID }}"
4747
working-directory: ./terraform

terraform/providers.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ terraform {
99

1010
provider "azurerm" {
1111
features {}
12+
subscription_id = var.subscription_id
1213
}

terraform/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,9 @@ variable "image_tag" {
1313
type = string
1414
default = "latest"
1515
}
16+
17+
variable "subscription_id" {
18+
description = "Azure Subscription ID"
19+
type = string
20+
default = ""
21+
}

0 commit comments

Comments
 (0)