https://github.com/dod-iac/terraform-aws-eventbridge-iam-role
Creates an IAM role for use as an EventBridge service role.
https://github.com/dod-iac/terraform-aws-eventbridge-iam-role
aws eventbridge events iam terraform
Last synced: about 2 months ago
JSON representation
Creates an IAM role for use as an EventBridge service role.
- Host: GitHub
- URL: https://github.com/dod-iac/terraform-aws-eventbridge-iam-role
- Owner: dod-iac
- License: mit
- Created: 2022-06-14T20:16:02.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-09-16T13:29:13.000Z (over 2 years ago)
- Last Synced: 2025-01-09T05:17:52.827Z (4 months ago)
- Topics: aws, eventbridge, events, iam, terraform
- Language: HCL
- Homepage: https://registry.terraform.io/modules/dod-iac/eventbridge-iam-role/aws
- Size: 8.79 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Usage
Creates an IAM role for use as an EventBridge service role.
```hcl
module "eventbridge_iam_role" {
source = "dod-iac/eventbridge-iam-role/aws"name = format("app-%s-eventbridge-iam-role-%s", var.application, var.environment)
codepipeline_pipelines_start = ["*"]
tags = {
Application = var.application
Environment = var.environment
Automation = "Terraform"
}
}
```## Terraform Version
Terraform 0.13. Pin module version to ~> 1.0.0 . Submit pull-requests to main branch.
Terraform 0.11 and 0.12 are not supported.
## License
This project constitutes a work of the United States Government and is not subject to domestic copyright protection under 17 USC § 105. However, because the project utilizes code licensed from contributors and other third parties, it therefore is licensed under the MIT License. See LICENSE file for more information.
## Requirements
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 0.13 |
| [aws](#requirement\_aws) | >= 3.0, < 5.0 |## Providers
| Name | Version |
|------|---------|
| [aws](#provider\_aws) | >= 3.0, < 5.0 |## Modules
No modules.
## Resources
| Name | Type |
|------|------|
| [aws_iam_policy.main](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_policy) | resource |
| [aws_iam_role.main](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role) | resource |
| [aws_iam_role_policy_attachment.main](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy_attachment) | resource |
| [aws_caller_identity.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/caller_identity) | data source |
| [aws_iam_policy_document.assume_role_policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source |
| [aws_iam_policy_document.main](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source |
| [aws_partition.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/partition) | data source |
| [aws_region.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/region) | data source |## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [assume\_role\_policy](#input\_assume\_role\_policy) | The assume role policy for the AWS IAM role. If blank, allows EventBridge to assume the role. | `string` | `""` | no |
| [codepipeline\_pipelines\_start](#input\_codepipeline\_pipelines\_start) | The ARNs of the AWS CodePipeline pipelines that this role can start. Use ["*"] to allow all pipelines. | `list(string)` | `[]` | no |
| [name](#input\_name) | The name of the AWS IAM role. | `string` | n/a | yes |
| [policy\_description](#input\_policy\_description) | The description of the AWS IAM policy. Defaults to "The policy for [NAME]". | `string` | `""` | no |
| [policy\_name](#input\_policy\_name) | The name of the AWS IAM policy. Defaults to "[NAME]-policy". | `string` | `""` | no |
| [tags](#input\_tags) | Tags applied to the AWS IAM role. | `map(string)` | `{}` | no |## Outputs
| Name | Description |
|------|-------------|
| [arn](#output\_arn) | The Amazon Resource Name (ARN) of the AWS IAM Role. |
| [name](#output\_name) | The name of the AWS IAM Role. |