fix: Add skip_requesting_account_id and use endpoints.s3 for Backblaze B2
This commit is contained in:
@@ -36,11 +36,12 @@ jobs:
|
|||||||
working-directory: terraform
|
working-directory: terraform
|
||||||
run: |
|
run: |
|
||||||
terraform init \
|
terraform init \
|
||||||
-backend-config="endpoint=${{ secrets.S3_ENDPOINT }}" \
|
-backend-config="endpoints.s3=${{ secrets.S3_ENDPOINT }}" \
|
||||||
-backend-config="bucket=${{ secrets.S3_BUCKET }}" \
|
-backend-config="bucket=${{ secrets.S3_BUCKET }}" \
|
||||||
-backend-config="region=auto" \
|
-backend-config="region=auto" \
|
||||||
-backend-config="access_key=${{ secrets.S3_ACCESS_KEY }}" \
|
-backend-config="access_key=${{ secrets.S3_ACCESS_KEY }}" \
|
||||||
-backend-config="secret_key=${{ secrets.S3_SECRET_KEY }}"
|
-backend-config="secret_key=${{ secrets.S3_SECRET_KEY }}" \
|
||||||
|
-backend-config="skip_requesting_account_id=true"
|
||||||
|
|
||||||
- name: Terraform Validate
|
- name: Terraform Validate
|
||||||
working-directory: terraform
|
working-directory: terraform
|
||||||
|
|||||||
@@ -30,11 +30,12 @@ jobs:
|
|||||||
working-directory: terraform
|
working-directory: terraform
|
||||||
run: |
|
run: |
|
||||||
terraform init \
|
terraform init \
|
||||||
-backend-config="endpoint=${{ secrets.S3_ENDPOINT }}" \
|
-backend-config="endpoints.s3=${{ secrets.S3_ENDPOINT }}" \
|
||||||
-backend-config="bucket=${{ secrets.S3_BUCKET }}" \
|
-backend-config="bucket=${{ secrets.S3_BUCKET }}" \
|
||||||
-backend-config="region=auto" \
|
-backend-config="region=auto" \
|
||||||
-backend-config="access_key=${{ secrets.S3_ACCESS_KEY }}" \
|
-backend-config="access_key=${{ secrets.S3_ACCESS_KEY }}" \
|
||||||
-backend-config="secret_key=${{ secrets.S3_SECRET_KEY }}"
|
-backend-config="secret_key=${{ secrets.S3_SECRET_KEY }}" \
|
||||||
|
-backend-config="skip_requesting_account_id=true"
|
||||||
|
|
||||||
- name: Terraform Destroy
|
- name: Terraform Destroy
|
||||||
working-directory: terraform
|
working-directory: terraform
|
||||||
|
|||||||
@@ -97,10 +97,11 @@ cd terraform
|
|||||||
|
|
||||||
# Create backend config file (or use CLI args)
|
# Create backend config file (or use CLI args)
|
||||||
cat > backend.hcl << EOF
|
cat > backend.hcl << EOF
|
||||||
endpoint = "https://s3.eu-central-003.backblazeb2.com"
|
endpoints.s3 = "https://s3.eu-central-003.backblazeb2.com"
|
||||||
bucket = "k8s-terraform-state"
|
bucket = "k8s-terraform-state"
|
||||||
access_key = "your-backblaze-key-id"
|
access_key = "your-backblaze-key-id"
|
||||||
secret_key = "your-backblaze-application-key"
|
secret_key = "your-backblaze-application-key"
|
||||||
|
skip_requesting_account_id = true
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
terraform init -backend-config=backend.hcl
|
terraform init -backend-config=backend.hcl
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ terraform {
|
|||||||
skip_credentials_validation = true
|
skip_credentials_validation = true
|
||||||
skip_metadata_api_check = true
|
skip_metadata_api_check = true
|
||||||
skip_region_validation = true
|
skip_region_validation = true
|
||||||
|
skip_requesting_account_id = true
|
||||||
force_path_style = true
|
force_path_style = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user