Skip to content

initial iac

initial iac #1

Workflow file for this run

jobs:
provision-ec2:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '14'
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: '${{ secrets.TERRAFORM_AWS_KEY }}'
aws-secret-access-key: '${{ secrets.TERRAFORM_AWS_SECRET }}'
aws-region: us-east-2
- name: Setup Terraform
uses: hashicorp/setup-terraform@v2
with:
terraform_wrapper: false
- name: Terraform Apply
id: apply
env:
TF_VAR_ec2_name: "homeuniteus-ec2"
run: |
cd iac/
terraform fmt -recursive .
terraform init
terraform validate
terraform plan
terraform apply -auto-approve