From 9342149fcdc955b6c2e064051eaf543bc201f5cb Mon Sep 17 00:00:00 2001 From: Enoch Eholor Date: Sat, 13 Sep 2025 13:21:49 +0100 Subject: [PATCH 1/2] add deploy workflow --- .../.github/workflows/deploy.yml | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 09-github-action-oidc-aws/.github/workflows/deploy.yml diff --git a/09-github-action-oidc-aws/.github/workflows/deploy.yml b/09-github-action-oidc-aws/.github/workflows/deploy.yml new file mode 100644 index 0000000..b0e91b8 --- /dev/null +++ b/09-github-action-oidc-aws/.github/workflows/deploy.yml @@ -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 + From cf60194f0e9d63c7a229590b0c4ebb97294e969f Mon Sep 17 00:00:00 2001 From: Enoch Eholor Date: Sat, 13 Sep 2025 13:56:19 +0100 Subject: [PATCH 2/2] trigger action --- 09-github-action-oidc-aws/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/09-github-action-oidc-aws/README.md b/09-github-action-oidc-aws/README.md index a6e5201..22382a9 100644 --- a/09-github-action-oidc-aws/README.md +++ b/09-github-action-oidc-aws/README.md @@ -4,4 +4,4 @@ ## Project Documentation -Refer [GitHub Actions OIDC AWS Integration] (https://devopscube.com/github-actions-oidc-aws/) for the entire setup walkthrough \ No newline at end of file +Refer [GitHub Actions OIDC AWS Integration] (https://devopscube.com/github-actions-oidc-aws/) for the entire setup walkthrough# test