Skip to content

Initial test of Github workflow AWS OIDC integration #1

Initial test of Github workflow AWS OIDC integration

Initial test of Github workflow AWS OIDC integration #1

Workflow file for this run

name: Connect to AWS role
on:
push:
branches:
- main
- develop
- feature/*
env:
AWS_REGION: $AWS_REGION
permissions:
id-token: write # This is required for requesting the JWT
content: read # This is required for actions/checkout

Check failure on line 15 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / Connect to AWS role

Invalid workflow file

The workflow is not valid. .github/workflows/main.yml (Line: 15, Col: 3): Unexpected value 'content'
jobs:
AssumeRoleAndCallIdentity:
runs-on: ubuntu-latest
steps:
- name: Clone the Git repository
uses: actions/checkout@v3
- name: Configure AWS credentials
uses: aws-actions/[email protected]
with:
role-to-assume: $AWS_ASSUME_ROLE_ARN
role-session-name: github-aws-oidc
aws-region: ${{ env.AWS_REGION }}
# TODO: simple API call for now; replace with Terraform plan/apply
- name: Sts GetCallerIdentity
run: |
aws sts get-caller-identity