fix: use endpoints.s3 for S3 backend (endpoint deprecated in TF 1.8+)
This commit is contained in:
@@ -88,7 +88,7 @@ jobs:
|
||||
TF_SKIP_REQUESTING_ACCOUNT_ID: "true"
|
||||
run: |
|
||||
# Override S3 endpoint to use internal cluster DNS (storage ns)
|
||||
export TF_CLI_ARGS_init="-backend-config=endpoint=http://minio.storage.svc.cluster.local:9000"
|
||||
export TF_CLI_ARGS_init="-backend-config=endpoints.s3=http://minio.storage.svc.cluster.local:9000"
|
||||
terraform init
|
||||
|
||||
- name: Pull Terraform State
|
||||
|
||||
+3
-1
@@ -4,7 +4,9 @@ terraform {
|
||||
bucket = "terraform-state"
|
||||
key = "homelab/terraform.tfstate"
|
||||
region = "us-east-1"
|
||||
endpoint = "https://minio-api.riotpiao.homelab.com"
|
||||
endpoints = {
|
||||
s3 = "https://minio-api.riotpiao.homelab.com"
|
||||
}
|
||||
profile = "minio"
|
||||
skip_credentials_validation = true
|
||||
skip_requesting_account_id = true
|
||||
|
||||
Reference in New Issue
Block a user