Skip to content

using ec2

using ec2 #21

Workflow file for this run

name: Full Infra Deployment with OIDC
on:
push:
branches:
- main
permissions:
id-token: write # REQUIRED for OIDC
contents: read
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Configure AWS credentials via OIDC
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::011664843975:role/github-actions-role
aws-region: ap-south-1
- name: Verify identity
run: aws sts get-caller-identity
- name: Terraform Init
run: terraform init
- name: Terraform Apply
run: terraform apply -auto-approve