Skip to content

Commit

Permalink
update backend config
Browse files Browse the repository at this point in the history
  • Loading branch information
libracoder committed Nov 5, 2024
1 parent b424626 commit ec4a110
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/crossplane.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
terraform init \
-backend-config="region=eu-central-1" \
-backend-config="bucket=terraform-eks" \
-backend-config="key=crossplane/${{ inputs.service_name }}"
-backend-config="key=crossplane/${{ inputs.environment }}/${{ inputs.service_name }}"
-
name: Terraform Validate
Expand All @@ -77,7 +77,8 @@ jobs:
terraform apply -auto-approve -no-color \
-var-file=${{ inputs.environment }}.tfvars \
-var="commit_hash=${{ github.sha }}" \
-var="service_name=${{ inputs.service_name }}"
-var="service_name=${{ inputs.service_name }}" \
-backend-config="key=crossplane/${{ inputs.environment }}/${{ inputs.service_name }}"
env:
TF_WORKSPACE: ${{ inputs.environment }}
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.STAGING_ONEPASSWORD_SERVICEACCOUNT_TOKEN }}
Expand Down

0 comments on commit ec4a110

Please sign in to comment.