Skip to content

Commit

Permalink
fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
agjmills committed Aug 20, 2024
1 parent f176ccd commit b7e2307
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy-terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ jobs:
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: ${{ AWS_REGION }}
role-to-assume: arn:aws:iam::${{ AWS_ACCOUNT_ID }}:role/github-oidc/github-deployment
aws-region: ${{ secrets.AWS_REGION }}
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/github-oidc/github-deployment

- name: Initialize Terraform
run: terraform init -backend-config="bucket=tf-state-${{ AWS_REGION }}-${{ AWS_ACCOUNT_ID }}" -backend-config="key=${{ GITHUB_REPOSITORY }}.tfstate" -backend-config="dynamodb_table=tf-state-${{ AWS_REGION }}-${{ AWS_ACCOUNT_ID }}"
run: terraform init -backend-config="bucket=tf-state-${{ secrets.AWS_REGION }}-${{ secrets.AWS_ACCOUNT_ID }}" -backend-config="key=${{ GITHUB_REPOSITORY }}.tfstate" -backend-config="dynamodb_table=tf-state-${{ secrets.AWS_REGION }}-${{ secrets.AWS_ACCOUNT_ID }}"

- name: Plan Terraform
run: terraform plan -out=tfplan
Expand Down

0 comments on commit b7e2307

Please sign in to comment.