From d1f8074ea81558138dd62a4d8ea019da83f84b99 Mon Sep 17 00:00:00 2001 From: Mufaddal5253110 Date: Wed, 29 May 2024 19:08:31 +0530 Subject: [PATCH 1/2] cleaning readme --- README.md | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/README.md b/README.md index 9eaf36a..e69de29 100644 --- a/README.md +++ b/README.md @@ -1,29 +0,0 @@ -# Terraform AWS IAM Role for GitHub Actions - -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. - -## Usage - -### Module - -```hcl -module "github_actions_iam_role" { - source = "github.com/infraspecdev/terraform-aws-github-actions-iam-role?ref=main" - - aws_account_id = "YOUR_AWS_ACCOUNT_ID" - github_username = "YOUR_GITHUB_USERNAME" - repository_names = "YOUR_REPO_NAMES" - role_name = "GitHubActionsRole" -} -``` - -## Variables - -- **aws_account_id**: The AWS Account ID where the IAM role will be created. -- **github_username**: The GitHub username or organization name. -- **repository_names**: The list of GitHub repository names. -- **role_name**: (Optional) The name of the IAM role. Default is `GitHubActionsRole`. - -## Outputs - -- **role_arn**: The ARN of the IAM role. From e77a42da9be2db3f0d89502e1fd5cd7e9688da0d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 29 May 2024 13:39:10 +0000 Subject: [PATCH 2/2] terraform-docs: automated action --- README.md | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/README.md b/README.md index e69de29..41cbbd0 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,41 @@ + +## Requirements + +| Name | Version | +|------|---------| +| [terraform](#requirement\_terraform) | ~> 1.8.4 | +| [aws](#requirement\_aws) | ~> 5.51.0 | + +## Providers + +| Name | Version | +|------|---------| +| [aws](#provider\_aws) | ~> 5.51.0 | + +## Modules + +No modules. + +## Resources + +| Name | Type | +|------|------| +| [aws_iam_role.github_actions_role](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role) | resource | +| [aws_iam_role_policy_attachment.attach_admin_policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy_attachment) | resource | +| [aws_iam_policy_document.assume_role_policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source | + +## Inputs + +| Name | Description | Type | Default | Required | +|------|-------------|------|---------|:--------:| +| [aws\_account\_id](#input\_aws\_account\_id) | The AWS Account ID | `string` | n/a | yes | +| [github\_username](#input\_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](#input\_repository\_names) | List of names of the GitHub repository that will be allowed to assume the role. | `list(string)` | n/a | yes | +| [role\_name](#input\_role\_name) | The name of the IAM Role to be created. | `string` | `"GitHubActionsRole"` | no | + +## Outputs + +| Name | Description | +|------|-------------| +| [role\_arn](#output\_role\_arn) | The ARN of the IAM role | + \ No newline at end of file