8000 GitHub - mcbanderson/github-actions-oidc
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

mcbanderson/github-actions-oidc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

github-actions-oidc

About

This repository demonstrates how to setup an OIDC provider and an IAM role in AWS, to enable AWS automation using GitHub Actions. It was developed for a talk at the AWS Sacramento Meetup.

The presentation slides I used for that talk are available here.

What's Here

This repository contains two resources.

First, template.yaml is a CloudFormation template for creating an OIDC Provider and IAM Role. The OIDC Provider is configured for GitHub, and the role is configured to be assumable by the repository specified when creating the CloudFormation Stack.

Second, .github/workflows/aws.yaml is a GitHub Actions Workflow which demonstrates how to assume your newly created IAM Role using OIDC.

The CloudFormation template can deployed using the following CLI command.

aws cloudformation deploy --template-file template.yaml --stack-name gha-oidc-stack --parameter-overrides GitHubOrg=<GitHub user or org> RepositoryName=<GitHub repo> --capabilities CAPABILITY_NAMED_IAM

Additional Resources

GitHub's documentation on configuring OIDC with AWS.

AWS' documentation on creating OIDC providers.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0