Skip to content

Commit

Permalink
Add Terraform to workflow to start EC2 instance
Browse files Browse the repository at this point in the history
  • Loading branch information
emilyllim committed Oct 23, 2023
1 parent 308b756 commit 96301c2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/benchrunner-aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,13 @@ jobs:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-west-2

- name: Set Up Terraform
uses: hashicorp/setup-terraform@v2

- name: Start EC2 instance Using Terraform Configuration
run: |
cd terraform
terraform init
terraform apply -auto-approve

0 comments on commit 96301c2

Please sign in to comment.