Skip to content

Commit

Permalink
Merge pull request #8 from fiap-8soat-tc-one/feature/github-actions
Browse files Browse the repository at this point in the history
Feature/GitHub actions
  • Loading branch information
jcmdsbr authored Dec 12, 2024
2 parents 9d93a69 + 60b5c5b commit a396273
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/iac-destroy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ jobs:
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-session-token: ${{ secrets.AWS_SESSION_TOKEN }}
aws-region: ${{ vars.AWS_REGION }}

- name: Get Session Token
run: echo aws sts get-session-token

- name: Initialize Terraform
working-directory: ./src/infra
run: terraform init
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/iac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,14 @@ jobs:
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-session-token: ${{ secrets.AWS_SESSION_TOKEN }}
aws-region: ${{ vars.AWS_REGION }}

- name: Initialize Terraform
working-directory: ./src/infra
run: terraform init

- name: Get Session Token
run: echo aws sts get-session-token

- name: Terraform Plan
working-directory: ./src/infra
Expand Down

0 comments on commit a396273

Please sign in to comment.