You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
module "eventbridge" {
source = "git::https://github.com/terraform-aws-modules/terraform-aws-eventbridge"
create_bus = false
rules = {
crons = {
description = "Trigger for the Step Functions"
schedule_expression = "rate(2 hours)" # Run state machine everyday 2 hours
# schedule_expression = "rate(5 minutes)"
# schedule_expression = "cron(0 10 * * ? *)" # Run state machine everyday 10:00 UTC
},
uss-health-cron = {
description = "Trigger for the USS health checks"
schedule_expression = "rate(4 hours)"
}
}
targets = {
crons = [
{
name = aws_sfn_state_machine.iam_integration_state_machine.name
arn = aws_sfn_state_machine.iam_integration_state_machine.arn
attach_role_arn = true
}
],
uss-health-cron = [
{
name = "USS Health checks target"
arn = aws_lambda_function.uss_health_checks.arn
}
]
}
sfn_target_arns = [aws_sfn_state_machine.iam_integration_state_machine.arn]
attach_sfn_policy = true
role_name = "iam-integration-event-bridge-role"
role_tags = local.resource_tags
create_role = true
tags = local.resource_tags
}
Since the release of #92 , the validation fails with the following:
╷
│ Error: Unsupported block type
│
│ on .terraform\modules\eventbridge\main.tf line 640, in resource "aws_pipes_pipe" "this":
│ 640: dynamic "sqs_queue_parameters" {
│
│ Blocks of type "sqs_queue_parameters" are not expected here.
╵
╷
│ Error: Unsupported block type
│
│ on .terraform\modules\eventbridge\main.tf line 649, in resource "aws_pipes_pipe" "this":
│ 649: dynamic "dynamodb_stream_parameters" {
│
│ Blocks of type "dynamodb_stream_parameters" are not expected here.
╵
╷
│ Error: Unsupported block type
│
│ on .terraform\modules\eventbridge\main.tf line 671, in resource "aws_pipes_pipe" "this":
│ 671: dynamic "kinesis_stream_parameters" {
│
│ Blocks of type "kinesis_stream_parameters" are not expected here.
╵
╷
│ Error: Unsupported block type
│
│ on .terraform\modules\eventbridge\main.tf line 700, in resource "aws_pipes_pipe" "this":
│ 700: dynamic "sqs_queue_parameters" {
│
│ Blocks of type "sqs_queue_parameters" are not expected here.
╵
╷
│ Error: Unsupported block type
│
│ on .terraform\modules\eventbridge\main.tf line 709, in resource "aws_pipes_pipe" "this":
│ 709: dynamic "cloudwatch_logs_parameters" {
│
│ Blocks of type "cloudwatch_logs_parameters" are not expected here.
╵
╷
│ Error: Unsupported block type
│
│ on .terraform\modules\eventbridge\main.tf line 718, in resource "aws_pipes_pipe" "this":
│ 718: dynamic "lambda_function_parameters" {
│
│ Blocks of type "lambda_function_parameters" are not expected here.
╵
╷
│ Error: Unsupported block type
│
│ on .terraform\modules\eventbridge\main.tf line 726, in resource "aws_pipes_pipe" "this":
│ 726: dynamic "step_function_state_machine_parameters" {
│
│ Blocks of type "step_function_state_machine_parameters" are not expected
│ here.
╵
╷
│ Error: Unsupported block type
│
│ on .terraform\modules\eventbridge\main.tf line 734, in resource "aws_pipes_pipe" "this":
│ 734: dynamic "eventbridge_event_bus_parameters" {
│
│ Blocks of type "eventbridge_event_bus_parameters" are not expected here.
╵
╷
│ Error: Unsupported block type
│
│ on .terraform\modules\eventbridge\main.tf line 746, in resource "aws_pipes_pipe" "this":
│ 746: dynamic "http_parameters" {
│
│ Blocks of type "http_parameters" are not expected here.
╵
╷
│ Error: Unsupported block type
│
│ on .terraform\modules\eventbridge\main.tf line 760, in resource "aws_pipes_pipe" "this":
│ 760: dynamic "enrichment_parameters" {
│
│ Blocks of type "enrichment_parameters" are not expected here.
╵
After pointing the module to v2.3.0 and doing terraform init -upgrade, it validates again.
✋ I have searched the open/closed issues and my issue is not listed.
⚠️ Note
Before you submit an issue, please perform the following first:
Remove the local .terraform directory (! ONLY if state is stored remotely, which hopefully you are following that best practice!): rm -rf .terraform/
Re-initialize the project root to pull down modules: terraform init
Re-attempt your terraform plan or apply and check if the issue still persists
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Description
Hello.
I have the following code:
Since the release of #92 , the validation fails with the following:
After pointing the module to
v2.3.0
and doingterraform init -upgrade
, it validates again.Before you submit an issue, please perform the following first:
.terraform
directory (! ONLY if state is stored remotely, which hopefully you are following that best practice!):rm -rf .terraform/
terraform init
Versions
Module version [Required]: 2.4.0
Terraform version: 1.5.7
Provider version(s):
Reproduction Code [Required]
See code snippet above
Steps to reproduce the behavior:
Not using workspaces
Yes
terraform init -upgrade
terraform validate
Expected behavior
Should state:
Success! The configuration is valid.
Actual behavior
See error described above
Terminal Output Screenshot(s)
It's in the description
Additional context
The text was updated successfully, but these errors were encountered: