Skip to content

Commit

Permalink
TF_VAR_AWS_ACCOUNT_ID
Browse files Browse the repository at this point in the history
  • Loading branch information
lexxnsk committed Sep 26, 2024
1 parent 9cc31d7 commit 1524424
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/terraform-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:

env:
AWS_ACCOUNT_ID: ${{ secrets.AWS_ACCOUNT_ID }}
TF_VAR_AWS_ACCOUNT_ID: ${{ secrets.AWS_ACCOUNT_ID }}
TERRAFORM_GITHUB_ACTIONS_ROLE_NAME: GithubActionsRole

permissions:
Expand Down Expand Up @@ -81,8 +82,6 @@ jobs:
role-to-assume: arn:aws:iam::${{ env.AWS_ACCOUNT_ID }}:role/${{ env.TERRAFORM_GITHUB_ACTIONS_ROLE_NAME }}

- name: Terraform Plan
env:
aws_account_id: ${{ env.AWS_ACCOUNT_ID }}
run: terraform plan

terraform_apply:
Expand All @@ -106,6 +105,4 @@ jobs:
role-to-assume: arn:aws:iam::${{ env.AWS_ACCOUNT_ID }}:role/${{ env.TERRAFORM_GITHUB_ACTIONS_ROLE_NAME }}

- name: Terraform Apply
env:
aws_account_id: ${{ env.AWS_ACCOUNT_ID }}
run: terraform apply

0 comments on commit 1524424

Please sign in to comment.