fix: terraform init backend config — use endpoint with inline credentials
This commit is contained in:
@@ -87,9 +87,10 @@ jobs:
|
|||||||
TF_SKIP_REGION_VALIDATION: "true"
|
TF_SKIP_REGION_VALIDATION: "true"
|
||||||
TF_SKIP_REQUESTING_ACCOUNT_ID: "true"
|
TF_SKIP_REQUESTING_ACCOUNT_ID: "true"
|
||||||
run: |
|
run: |
|
||||||
# Override S3 endpoint to use internal cluster DNS (storage ns)
|
terraform init \
|
||||||
export TF_CLI_ARGS_init="-backend-config=endpoints.s3=http://minio.storage.svc.cluster.local:9000"
|
-backend-config="endpoint=http://minio.storage.svc.cluster.local:9000" \
|
||||||
terraform init
|
-backend-config="access_key=$AWS_ACCESS_KEY_ID" \
|
||||||
|
-backend-config="secret_key=$AWS_SECRET_ACCESS_KEY"
|
||||||
|
|
||||||
- name: Pull Terraform State
|
- name: Pull Terraform State
|
||||||
working-directory: terraform
|
working-directory: terraform
|
||||||
|
|||||||
+1
-3
@@ -4,9 +4,7 @@ terraform {
|
|||||||
bucket = "terraform-state"
|
bucket = "terraform-state"
|
||||||
key = "homelab/terraform.tfstate"
|
key = "homelab/terraform.tfstate"
|
||||||
region = "us-east-1"
|
region = "us-east-1"
|
||||||
endpoints = {
|
endpoint = "https://minio-api.riotpiao.homelab.com"
|
||||||
s3 = "https://minio-api.riotpiao.homelab.com"
|
|
||||||
}
|
|
||||||
profile = "minio"
|
profile = "minio"
|
||||||
skip_credentials_validation = true
|
skip_credentials_validation = true
|
||||||
skip_requesting_account_id = true
|
skip_requesting_account_id = true
|
||||||
|
|||||||
Reference in New Issue
Block a user