Skip to content

ionmariana531 is deploying on AWS πŸš€ #21

ionmariana531 is deploying on AWS πŸš€

ionmariana531 is deploying on AWS πŸš€ #21

name: Terraform apply
run-name: ${{ github.actor }} is deploying on AWS πŸš€
on: [push]
jobs:
Deploy-AWS-Ec2:
runs-on: ubuntu-latest
steps:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v3
with:
aws-access-key-id: ${{ secrets.MARIANA_AWS_KEY }}
aws-secret-access-key: ${{ secrets.MARIANA_AWS_SECRET }}
aws-region: eu-central-1
- name: Checkout Repository
uses: actions/checkout@v4
- name: Deploy Infrastructure
run: |
cd terraform/terraform-modules/tf-ec2-module/
terraform init
terraform plan
terraform apply
terraform destroy -auto-approve