Skip to content

Commit

Permalink
new gha yml
Browse files Browse the repository at this point in the history
  • Loading branch information
proquickly committed Nov 6, 2024
1 parent b0a4144 commit 4d51801
Showing 1 changed file with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,17 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1 # Replace with your AWS region

- name: Setup Terraform
uses: hashicorp/setup-terraform@v2
with:
terraform_version: 1.5.0 # Ensure this matches your Terraform version
terraform_version: 1.5.0

- name: Terraform Init
run: terraform init
Expand All @@ -26,10 +33,6 @@ jobs:
run: terraform plan -out=tfplan
working-directory: terraform


- name: Terraform Apply
run: terraform apply tfplan -auto-approve

env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
working-directory: terraform

0 comments on commit 4d51801

Please sign in to comment.