Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A simple module that create all the necessary infrastructure to allow GitHub Actions to access your AWS account by using an OIDC role.

License

NotificationsYou must be signed in to change notification settings

michael-ortiz/terraform-aws-github-actions-oidc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple module that creates a single OIDC Role to be assumed by GitHub Actions to have access to your AWS Account.

Usage:

module "github-actions-oidc" {  source  = "michael-ortiz/github-actions-oidc/aws"  version = "~> 1.0"  create_oidc_provider = true  repositories            = ["Organization/RepositoryName"]  oidc_role_policies_arns = ["YOUR_POLICY_ARN"]}

Resources

NameType
aws_iam_openid_connect_provider.providerresource
aws_iam_role.github_actions_roleresource
aws_iam_role_policy_attachment.attachmentresource
aws_iam_policy_document.policy_documentdata source

Inputs

NameDescriptionTypeDefaultRequired
create_oidc_providerShould create or not the OIDC provider.booltrueno
github_thumbprintGitHub OpenID TLS certificate thumbprints.list(string)6938fd4d98bab03faadb97b34396831e3780aea1,1c58a3a8518e8759bf075b76b750d4f2df264fcdno
max_session_durationMaximum session duration in seconds.number3600no
oidc_role_policies_arnsPolicy ARNs to be attached to the role.list(string)[]no
repositoriesList of GitHub organization/repository names authorized to assume the role.list(string)[]no
tagsTags to be applied to resources.map(string){}no
role_nameName of the GitHub Actions OIDC role.stringgithub-actions-oidc-roleno

Outputs

NameDescription
oidc_provider_arnOIDC provider ARN
oidc_role_arnGitHub Actions OIDC role ARN

About

A simple module that create all the necessary infrastructure to allow GitHub Actions to access your AWS account by using an OIDC role.

Topics

Resources

License

Stars

Watchers

Forks

Languages


[8]ページ先頭

©2009-2025 Movatter.jp