/terraform-aws-github-oidc-provider

Terraform module for accessing AWS APIs via Github Actions through OpenID Connect.

Primary LanguageHCL

terraform-aws-github-oidc-provider

Terraform module for accessing AWS APIs via Github Actions through OpenID Connect.

Requirements

Name Version
terraform >= 1.10.1
aws >= 5.82.0

Providers

Name Version
aws >= 5.82.0

Modules

No modules.

Resources

Name Type
aws_iam_openid_connect_provider.github resource
aws_iam_role.github_actions resource
aws_iam_role_policy_attachment.github_actions_power_user resource
aws_resourcegroups_group.resourcegroups_group resource
aws_caller_identity.current_caller_identity data source

Inputs

Name Description Type Default Required
github_organization_name Organization name on Github. string n/a yes
github_repository_name Repository name on Github. string n/a yes
project_name Unique name representing the module, will be used to tag resources created by it. string "github-oidc-provider" no

Outputs

Name Description
aws_iam_role_arn IAM role arn for github actions (To be stored as a secret and referenced as secrets.AWS_IAM_ROLE)
github_repository_url The URL of the Github repository that will be used for CI.