Skip to content

Files

Latest commit

 

History

History
59 lines (48 loc) · 4.64 KB

TERRAFORM.md

File metadata and controls

59 lines (48 loc) · 4.64 KB

Requirements

Name Version
terraform ~> 1
aws >= 4
tls >= 4

Providers

Name Version
aws 4.47.0
tls 4.0.4

Modules

No modules.

Resources

Name Type
aws_iam_openid_connect_provider.provider resource
aws_iam_role.role resource
aws_iam_role_policy_attachment.admin resource
aws_iam_role_policy_attachment.custom resource
aws_iam_role_policy_attachment.read_only resource
aws_iam_openid_connect_provider.provider data source
aws_iam_policy_document.assume_role data source
aws_partition.current data source
tls_certificate.provider data source

Inputs

Name Description Type Default Required
attach_admin_policy Enable attachment of the AdministratorAccess policy bool false no
attach_read_only_policy Enable attachment of the ReadOnly policy bool true no
create_oidc_provider Enable creation of the GitHub OIDC provider bool true no
enabled Enable creation of resources bool true no
force_detach_policies Force detachment of policies attached to the IAM role string false no
github_organisation GitHub organisation name string n/a yes
github_repositories List of GitHub repository name(s) and branche names or patterns
list(object({
name = string
branches = list(string)
}))
[
{
"branches": null,
"name": null
}
]
no
iam_role_name Name of the IAM role string "github-actions" no
iam_role_path Path to the IAM role string "/" no
iam_role_permissions_boundary ARN of the permissions boundary to be used by the IAM role string "" no
iam_role_policy_arns List of IAM policy ARNs to attach to the IAM role list(string) [] no
max_session_duration Maximum session duration in seconds number 3600 no
tags Map of tags to be applied to all resources map(string) {} no
url URL of identity provider string "token.actions.githubusercontent.com" no

Outputs

Name Description
repositories List if GitHub repositories and branches
role_arn AWS role ARN
role_id AWS role ID