{"id":18907748,"url":"https://github.com/infraspecdev/terraform-aws-github-action-iam-role","last_synced_at":"2026-03-19T07:04:19.363Z","repository":{"id":250670069,"uuid":"835071750","full_name":"infraspecdev/terraform-aws-github-action-iam-role","owner":"infraspecdev","description":"This Terraform module creates and configures an IAM role in AWS that allows GitHub Actions to assume the role using OpenID Connect (OIDC) for deploying resources in your AWS account","archived":false,"fork":false,"pushed_at":"2024-11-14T09:57:40.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-06-01T00:52:37.058Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/infraspecdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-29T05:28:29.000Z","updated_at":"2024-11-14T09:57:43.000Z","dependencies_parsed_at":"2024-11-08T09:28:01.755Z","dependency_job_id":"86f0517f-7113-4445-abb7-dcf479d83cd8","html_url":"https://github.com/infraspecdev/terraform-aws-github-action-iam-role","commit_stats":null,"previous_names":["infraspecdev/terraform-aws-github-action-iam-role"],"tags_count":1,"template":false,"template_full_name":"infraspecdev/terraform-module-template","purl":"pkg:github/infraspecdev/terraform-aws-github-action-iam-role","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infraspecdev%2Fterraform-aws-github-action-iam-role","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infraspecdev%2Fterraform-aws-github-action-iam-role/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infraspecdev%2Fterraform-aws-github-action-iam-role/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infraspecdev%2Fterraform-aws-github-action-iam-role/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/infraspecdev","download_url":"https://codeload.github.com/infraspecdev/terraform-aws-github-action-iam-role/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infraspecdev%2Fterraform-aws-github-action-iam-role/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28792643,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T21:49:50.245Z","status":"ssl_error","status_checked_at":"2026-01-26T21:48:29.455Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T09:23:01.411Z","updated_at":"2026-01-27T00:10:17.940Z","avatar_url":"https://github.com/infraspecdev.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- BEGIN_TF_DOCS --\u003e\n# Terraform Module Template\n\nThis repository serves as a template for creating Terraform modules. It provides a structured approach to organizing and maintaining Terraform code, along with examples and best practices.\n\n## Table of Contents\n\n- [Prerequisites](#prerequisites)\n- [Usage](#usage)\n- [Examples](#examples)\n- [Module Structure](#module-structure)\n\n## Prerequisites\n\nBefore you begin, ensure you have met the following requirements:\n\n1. [install terraform](https://developer.hashicorp.com/terraform/tutorials/aws-get-started/install-cli)\n2. [install pre-commit](https://pre-commit.com/#install)\n3. configure pre-commit: `pre-commit install`\n4. install required tools\n   - [tflint](https://github.com/terraform-linters/tflint)\n   - [terraform-docs](https://github.com/terraform-docs/terraform-docs)\n\n## Usage\n\nTo use this template, clone the repository and customize it according to your module's requirements. Below is a quick start guide:\n\n1. **Clone the repository:**\n\n   ```sh\n   git clone https://github.com/your-username/terraform-module-template.git\n   cd terraform-module-template\n   ```\n2. **Customize the module:**\n\n   - Update `main.tf`, `variables.tf`, `outputs.tf`, and `versions.tf` files as needed.\n   - Add your own resources and logic.\n3. **Run Terraform commands:**\n\n   ```sh\n   terraform init\n   terraform plan\n   terraform apply\n   ```\n\n## Examples\n\nThis repository includes example configurations to help you understand how to use the module:\n\n- **Complete Example:** Located in `examples/complete`\n\n  - Demonstrates a full-featured usage of the module.\n\n  ```sh\n  cd examples/complete\n  terraform init\n  terraform apply\n  ```\n- **Minimal Example:** Located in `examples/minimal`\n\n  - Shows a minimal configuration for using the module.\n\n  ```sh\n  cd examples/minimal\n  terraform init\n  terraform apply\n  ```\n\n## Module Structure\n\nThe repository is organized as follows:\n\n```plaintext\n.\n├── .editorconfig\n├── examples\n│   ├── complete\n│   │   ├── main.tf\n│   │   ├── outputs.tf\n│   │   ├── provider.tf\n│   │   ├── README.md\n│   │   ├── variables.tf\n│   │   └── versions.tf\n│   └── minimal\n│       ├── main.tf\n│       ├── outputs.tf\n│       ├── provider.tf\n│       ├── README.md\n│       ├── variables.tf\n│       └── versions.tf\n├── .github\n│   └── workflows\n│       ├── documentation.yaml\n│       ├── pre-commit.yaml\n│       └── pr-title.yaml\n├── .gitignore\n├── main.tf\n├── modules\n│   └── sample-resource\n│       ├── main.tf\n│       ├── outputs.tf\n│       ├── variables.tf\n│       └── version.tf\n├── outputs.tf\n├── .pre-commit-config.yaml\n├── README.md\n├── .terraform-docs.yml\n├── tests\n│   ├── examples_minimal.tftest.hcl\n│   └── unit_tests.tftest.hcl\n├── .tflint.hcl\n├── variables.tf\n└── versions.tf\n```\n\n## Reference [Getoutline](https://infraspec.getoutline.com/doc/terraform-Xkko7xHwM5) Document for Conventions to follow in your module\n\n## Requirements\n\n| Name | Version |\n|------|---------|\n| \u003ca name=\"requirement_terraform\"\u003e\u003c/a\u003e [terraform](#requirement\\_terraform) | \u003e= 1.8.4 |\n| \u003ca name=\"requirement_aws\"\u003e\u003c/a\u003e [aws](#requirement\\_aws) | \u003e= 5.51.0 |\n\n## Providers\n\n| Name | Version |\n|------|---------|\n| \u003ca name=\"provider_aws\"\u003e\u003c/a\u003e [aws](#provider\\_aws) | \u003e= 5.51.0 |\n\n## Modules\n\nNo modules.\n\n## Resources\n\n| Name | Type |\n|------|------|\n| [aws_iam_openid_connect_provider.github_oidc](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_openid_connect_provider) | resource |\n| [aws_iam_role.github_action](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role) | resource |\n| [aws_iam_role_policy_attachment.admin](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy_attachment) | resource |\n| [aws_iam_policy_document.assume_role](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source |\n\n## Inputs\n\n| Name | Description | Type | Default | Required |\n|------|-------------|------|---------|:--------:|\n| \u003ca name=\"input_aws_account_id\"\u003e\u003c/a\u003e [aws\\_account\\_id](#input\\_aws\\_account\\_id) | The AWS Account ID | `string` | n/a | yes |\n| \u003ca name=\"input_github_username\"\u003e\u003c/a\u003e [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 |\n| \u003ca name=\"input_repository_names\"\u003e\u003c/a\u003e [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 |\n| \u003ca name=\"input_role_name\"\u003e\u003c/a\u003e [role\\_name](#input\\_role\\_name) | The name of the IAM Role to be created | `string` | `\"GithubActionsRole\"` | no |\n\n## Outputs\n\n| Name | Description |\n|------|-------------|\n| \u003ca name=\"output_github_action_iam_role_arn\"\u003e\u003c/a\u003e [github\\_action\\_iam\\_role\\_arn](#output\\_github\\_action\\_iam\\_role\\_arn) | The ARN of the IAM role |\n\u003c!-- END_TF_DOCS --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfraspecdev%2Fterraform-aws-github-action-iam-role","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finfraspecdev%2Fterraform-aws-github-action-iam-role","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfraspecdev%2Fterraform-aws-github-action-iam-role/lists"}