Skip to content

Commit

Permalink
Update and rename github-actions-demo.yml to terraform-apply.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusB-DevOps authored Dec 4, 2024
1 parent e21c9de commit 5aff7e1
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 28 deletions.
28 changes: 0 additions & 28 deletions .github/workflows/github-actions-demo.yml

This file was deleted.

21 changes: 21 additions & 0 deletions .github/workflows/terraform-apply.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Terraform apply
run-name: ${{ github.actor }} is deploying on AWS 🚀
on:
push:
branches:
feature/aws-s3-module
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.AWS_ACCESS_KEY_ID_MARIUS }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_MARIUS }}
aws-region: eu-central-1
- name: Deploy Infrastructure
run: |
terraform init
- run: |
terraform apply -auto-approve

0 comments on commit 5aff7e1

Please sign in to comment.