Skip to content

Commit 3085e6d

Browse files
authored
Fix backend keys (#5)
* Fix backend key configuration Signed-off-by: Roman Schwarz <rs@cloudeteer.de> * Add missing variables Signed-off-by: Roman Schwarz <rs@cloudeteer.de> * Add missing Terraform lock file Signed-off-by: Roman Schwarz <rs@cloudeteer.de> --------- Signed-off-by: Roman Schwarz <rs@cloudeteer.de>
1 parent 81964ff commit 3085e6d

3 files changed

Lines changed: 34 additions & 2 deletions

File tree

prod-stackit/terraform/10_launchpad/.terraform.lock.hcl

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

prod-stackit/terraform/10_launchpad/main.tf

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ terraform {
1111
backend "s3" {
1212
bucket = "launchpad"
1313
region = "eu01"
14-
key = "prod-stackid/terraform/10_launchpad/terraform.tfstate"
14+
key = "prod-stackit/terraform/10_launchpad/terraform.tfstate"
1515

1616
endpoints = {
1717
s3 = "https://object.storage.eu01.onstackit.cloud"
@@ -45,3 +45,7 @@ provider "stackit" {
4545
# It takes precedence over the private key that is included in the service account key.
4646
private_key = var.private_key
4747
}
48+
49+
# These variables are mandatory and used on the provider configuration above.
50+
variable "service_account_key" {}
51+
variable "private_key" { default = null }

prod-stackit/terraform/50_projects/team-iac-test01/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ terraform {
1111
backend "s3" {
1212
bucket = "launchpad"
1313
region = "eu01"
14-
key = "prod-stackid/terraform/10_launchpad/terraform.tfstate"
14+
key = "prod-stackit/terraform/50_projects/team-iac-test01/terraform.tfstate"
1515

1616
endpoints = {
1717
s3 = "https://object.storage.eu01.onstackit.cloud"

0 commit comments

Comments
 (0)