mirror of
https://github.com/sigmasternchen/terraform-aws-eventbridge
synced 2025-03-15 07:58:57 +00:00
feat: support http_target argument (#11)
This commit is contained in:
parent
d303324659
commit
ee5d963f48
3 changed files with 15 additions and 3 deletions
|
@ -239,13 +239,13 @@ module "eventbridge" {
|
|||
| Name | Version |
|
||||
|------|---------|
|
||||
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13.1 |
|
||||
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.19 |
|
||||
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.40 |
|
||||
|
||||
## Providers
|
||||
|
||||
| Name | Version |
|
||||
|------|---------|
|
||||
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 3.19 |
|
||||
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 3.40 |
|
||||
|
||||
## Modules
|
||||
|
||||
|
|
12
main.tf
12
main.tf
|
@ -122,6 +122,18 @@ resource "aws_cloudwatch_event_target" "this" {
|
|||
}
|
||||
}
|
||||
|
||||
dynamic "http_target" {
|
||||
for_each = lookup(each.value, "http_target", null) != null ? [
|
||||
each.value.http_target
|
||||
] : []
|
||||
|
||||
content {
|
||||
path_parameter_values = lookup(http_target.value, "path_parameter_values", null)
|
||||
query_string_parameters = lookup(http_target.value, "query_string_parameters", null)
|
||||
header_parameters = lookup(http_target.value, "header_parameters", null)
|
||||
}
|
||||
}
|
||||
|
||||
dynamic "input_transformer" {
|
||||
for_each = lookup(each.value, "input_transformer", null) != null ? [
|
||||
each.value.input_transformer
|
||||
|
|
|
@ -2,6 +2,6 @@ terraform {
|
|||
required_version = ">= 0.13.1"
|
||||
|
||||
required_providers {
|
||||
aws = ">= 3.19"
|
||||
aws = ">= 3.40"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue