Skip to content

Commit

Permalink
fix: add aws key
Browse files Browse the repository at this point in the history
  • Loading branch information
woowahan-neo committed Jan 9, 2025
1 parent 6eb5ae2 commit cc924ee
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,12 @@ jobs:
with:
terraform_version: 1.10.3

- name: Select workspace
run: |
ENVIRONMENT=${{ github.event.inputs.environment }}
terraform workspace select "$ENVIRONMENT" || terraform workspace new "$ENVIRONMENT"
- name: Terraform Init and Apply
env:
TF_API_TOKEN: ${{ secrets.TF_API_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
working-directory: terraform/environments/${{ github.event.inputs.environment }}
run: |
terraform init
terraform plan -out=tfplan
Expand Down

0 comments on commit cc924ee

Please sign in to comment.