Skip to content

Merge pull request #69 from VMess1/readme-1 #57

Merge pull request #69 from VMess1/readme-1

Merge pull request #69 from VMess1/readme-1 #57

Workflow file for this run

name: Terraform deploy
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Setup- Python
uses: actions/checkout@v4
with:
python-version: '3.11'
- name: Install requirements
run: make requirements
- name: Configure AWS CLI
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: eu-west-2
- name: Setup terraform
uses: hashicorp/setup-terraform@v2
- name: Terraform init
working-directory: terraform
run: terraform init
- name: Terraform plan
working-directory: terraform
run: terraform plan
- name: Terraform apply
working-directory: terraform
run: terraform apply -auto-approve