github-oidc

bryan-rhm/github-oidc/aws

Terraform Module HCL AWS

Module to create github oidc integration.

Install
module "github-oidc" {
source = "bryan-rhm/github-oidc/aws"
version = "1.0.1"
}
plain text: /constructs/tfmod-bryan-rhm-github-oidc-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

terraform-aws-github-oidc Module to create github oidc integration with AWS. Usage Install the module Initialize the module and get the Role ARN from the outputs. ``hcl provider "aws" { region = var.region } module "github_oidc" { source = "bryan-rhm/github-oidc/aws" version = "1.0.0" github_organization = "YOUR ORGANIZATION/GITHUB ACCOUNT" managed_policy_arns = ["arn:aws:iam::aws:policy/AmazonS3ReadOnlyAccess"] # Policies you want to attach to the github role. } ` Once you have installed the module you will be able authenticate from your github organization using the role created from the module. The job or workflow run requires a permissions setting with id-token: write. You won't be able to request the OIDC JWT ID token if the permissions setting for id-token is set to read or none. `ya

Inputs (6)
NameTypeDescriptionDefault
github_organizationstringThe GitHub organization to allow access to required
role_namestringName of the IAM role"GithubActionsRole"
managed_policy_arnslist(string)The ARNs of the managed policies to attach to the role[]
tagsmap(string)Tags to apply to all resources{}
github_urlstringThe URL of the GitHub OAuth2 provider"https://token.actions.githubusercontent
github_repositorieslist(string)The GitHub repositories inside the organization you want to allow access to[ "*" ]
Outputs (3)
role_arn — Arn of the IAM role allowed to authenticate to AWS from Github actions
oidc — Github openid connect provider
assume_role_policy — Assume role policy, this value can be used to create another role outside this module
Resources (2)
aws_iam_openid_connect_provideraws_iam_role
Details
FrameworkTerraform Module
LanguageHCL
Version1.0.1
Cloud AWS
★ Stars3
Forks1
Total downloads4.1k
Inputs6
Outputs3
Resources2
LicenseApache-2.0
Namespacebryan-rhm
Updated