Skip to content

Commit cd90ce0

Browse files
committed
chore: fix terraform backend config and commit provider lock file
1 parent 0e0afcd commit cd90ce0

4 files changed

Lines changed: 51 additions & 14 deletions

File tree

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ terraform/.terraform/
2525
terraform/terraform.tfstate
2626
terraform/terraform.tfstate.backup
2727
terraform/terraform.tfvars
28-
terraform/.terraform.lock.hcl
2928

3029
# Credentials — never commit
3130
.env*

terraform/.terraform.lock.hcl

Lines changed: 45 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

terraform/backend.hcl

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
# Populated by terraform/bootstrap — run bootstrap first, then:
2-
# terraform init -backend-config=backend.hcl
3-
#
4-
# To use local state instead, remove the backend block from providers.tf
5-
# and run: terraform init
6-
7-
resource_group_name = "rg-tf-state"
8-
storage_account_name = "stkeyfactortfstate"
1+
resource_group_name = "rg-keyfactor-github-tfstate"
2+
storage_account_name = "kfghtfstatesn84ro"
93
container_name = "tfstate"
10-
key = "certinext-caplugin/terraform.tfstate"
4+
key = "github/repos/certinext-caplugin/terraform.tfstate"

terraform/providers.tf

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@ terraform {
1212
}
1313
}
1414

15-
# Remote state in Azure Blob Storage — run bootstrap first, then:
16-
# terraform init -backend-config=backend.hcl
17-
# To use local state instead (no bootstrap required):
18-
# remove this backend block and run: terraform init
15+
# Remote state in Azure Blob Storage (shared with other plugin repos).
16+
# The backend storage account is managed by the bootstrap in keyfactor-acme-lab.
17+
# Run: terraform init -backend-config=backend.hcl
1918
backend "azurerm" {}
2019
}
2120

0 commit comments

Comments
 (0)