github-actions-oidc

hectcastro/github-actions-oidc/aws

Terraform Module HCL AWS ⏱ stale 4y 2mo

Terraform module to configure Amazon Web Services (AWS) to trust GitHub's OpenID Connect (OIDC) as a federated identity.

Install

module "github-actions-oidc" {
source = "hectcastro/github-actions-oidc/aws"
version = "0.1.0"
}
⭐ Source on GitHub 📦 Registry page

README

terraform-aws-github-actions-oidc Terraform module to configure Amazon Web Services (AWS) to trust GitHub's OpenID Connect (OIDC) as a federated identity. This enables services like GitHub Actions to access resources within AWS using short-lived credentials. Usage ``hcl module "github_actions_aws_oidc" { source = "hectcastro/github-actions-oidc" github_org = "hectcastro" github_repo = "terraform-aws-github-actions-oidc" github_custom_claim = "ref:refs/heads/main" } ``

Inputs (3)

NameTypeDescriptionDefault
github_orgstringGitHub organization to scope access required
github_repostringGitHub repository to scope access required
github_custom_claimstringGitHub custom OIDC claim to scope access"ref:refs/heads/main"

Outputs (2)

role_name — AWS IAM role name to assume
role_arn — AWS IAM role ARN to assume

Resources (2)

aws_iam_openid_connect_provideraws_iam_role

Details

FrameworkTerraform Module
LanguageHCL
Version0.1.0
Cloud AWS
★ Stars4
Forks4
Total downloads5.1k
Inputs3
Outputs2
Resources2
LicenseApache-2.0
Namespacehectcastro
Updated