Skip to content

This repository provides a Terraform module to create an IAM role with the necessary permissions and trust policies for GitHub Actions to manage AWS Organizations resources.

Notifications You must be signed in to change notification settings

infraspecdev/terraform-aws-github-actions-iam-role

Repository files navigation

Requirements

Name Version
terraform ~> 1.8.4
aws ~> 5.51.0

Providers

Name Version
aws ~> 5.51.0

Modules

No modules.

Resources

Name Type
aws_iam_openid_connect_provider.github_oidc_connect resource
aws_iam_role.github_actions_role resource
aws_iam_role_policy_attachment.attach_admin_policy resource
aws_iam_policy_document.assume_role_policy data source

Inputs

Name Description Type Default Required
aws_account_id The AWS Account ID string n/a yes
github_username The name of the GitHub user or organization that owns the repository(ies) the role will use. string n/a yes
repository_names List of names of the GitHub repository that will be allowed to assume the role. list(string) n/a yes
role_name The name of the IAM Role to be created. string "GitHubActionsRole" no

Outputs

Name Description
role_arn The ARN of the IAM role

About

This repository provides a Terraform module to create an IAM role with the necessary permissions and trust policies for GitHub Actions to manage AWS Organizations resources.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages