This is an example of Github Actions deployment to AWS with OpenID connect (OIDC) using terraform.
The example sets up OIDC to allow access to an AWS s3 bucket but this can be updated for other use cases (ie AWS ECS, EKS and Lambda).
Full article available at jerrychang.ca - Security harden Github Action deployments to AWS with OIDC