Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions 09-github-action-oidc-aws/.github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Deploy to AWS

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest
permissions:
id-token: write # required for OIDC
contents: read

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::529496936957:role/GitHubOIDCRole
aws-region: us-east-1

- name: Test AWS
run: aws s3 ls

2 changes: 1 addition & 1 deletion 09-github-action-oidc-aws/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

## Project Documentation

Refer [GitHub Actions OIDC AWS Integration] (https://devopscube.com/github-actions-oidc-aws/) for the entire setup walkthrough
Refer [GitHub Actions OIDC AWS Integration] (https://devopscube.com/github-actions-oidc-aws/) for the entire setup walkthrough# test