Skip to content

Commit

Permalink
adding apply stage
Browse files Browse the repository at this point in the history
  • Loading branch information
chelseybeck committed Feb 22, 2024
1 parent 1d50e71 commit b32fd04
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/terraform-apply.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Apply Terraform changes on merge

on:
push:
branches:
- main # or any other branch you want to trigger the deployment

jobs:
terraform-apply:
name: Terraform Apply
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

permissions:
contents: read
pull-requests: write

steps:
- name: Checkout code
uses: actions/checkout@v4
- 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-west-2

- name: Terraform Apply
uses: dflook/terraform-apply@v1
with:
path: terraform

0 comments on commit b32fd04

Please sign in to comment.