-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ben Fortuna
committed
Mar 11, 2021
1 parent
031f799
commit 15f974c
Showing
6 changed files
with
65 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Created by .ignore support plugin (hsz.mobi) | ||
terraform-aws-cloudwatch-event-rule.iml | ||
terraform-aws-cloudwatch-event.iml | ||
.terraform/ | ||
*.tfstate* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
## Requirements | ||
|
||
No requirements. | ||
|
||
## Providers | ||
|
||
No provider. | ||
|
||
## Inputs | ||
|
||
| Name | Description | Type | Default | Required | | ||
|------|-------------|------|---------|:--------:| | ||
| description | Trigger description | `any` | n/a | yes | | ||
| name | Name of the CloudWatch Event trigger | `any` | n/a | yes | | ||
| target\_arn | ARN of the CloudWatch Event target | `any` | n/a | yes | | ||
| target\_name | Function name for Lambda targets (used to configure invocation permissions) | `any` | `null` | no | | ||
| target\_role | Name of the IAM role assumed by the target | `any` | n/a | yes | | ||
|
||
## Outputs | ||
|
||
No output. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
module "cloudwatch_event" { | ||
source = "../.." | ||
|
||
description = var.description | ||
name = var.name | ||
event_source = "aws.health" | ||
event_types = ["AWS Health Event"] | ||
target_arn = var.target_arn | ||
target_name = var.target_name | ||
target_role = var.target_role | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
variable "name" { | ||
description = "Name of the CloudWatch Event trigger" | ||
} | ||
|
||
variable "description" { | ||
description = "Trigger description" | ||
} | ||
|
||
variable "target_arn" { | ||
description = "ARN of the CloudWatch Event target" | ||
} | ||
|
||
variable "target_name" { | ||
description = "Function name for Lambda targets (used to configure invocation permissions)" | ||
default = null | ||
} | ||
|
||
variable "target_role" { | ||
description = "Name of the IAM role assumed by the target" | ||
} |