Closed sweetcoco closed 7 months ago
Voting for Prioritization
Volunteering to Work on This Issue
Hey @sweetcoco 👋 Thank you for taking the time to raise this! So that we have the necessary information in order to look into this, can you supply debug logs (redacted as needed) as well?
getting same error, with kinesis as source, http api destination as target Note: to replicate issue, change anything in target_parameters.
AWS Provider Version: 5.7.0
error: │ Error: updating Amazon EventBridge Pipes Pipe (name): operation error Pipes: UpdatePipe, https response error StatusCode: 400, RequestID: eda9e7a8-014a-44c0-95f3-ef523c070a3c, ValidationException: [numeric instance is lower than the required minimum (minimum: 1, found: 0)]
resource "aws_pipes_pipe" "patient-events-stream-pipe" {
name = "name"
role_arn = var.role_arn
source = var.source_kinesis_stream_arn
target = var.api_destination_arn
source_parameters {
kinesis_stream_parameters {
batch_size = 1
starting_position = "TRIM_HORIZON"
}
}
target_parameters {
input_template = <<EOF
$.data
EOF
}
}
hello, it seems there is still issue if there is filter parameters addition to top of the given resource i shared.
resource "aws_pipes_pipe" "patient-events-stream-pipe" {
name = "name"
role_arn = var.role_arn
source = var.source_kinesis_stream_arn
target = var.api_destination_arn
source_parameters {
kinesis_stream_parameters {
batch_size = 1
starting_position = "TRIM_HORIZON"
}
filter_criteria {
filter {
pattern = jsonencode({
domain : ["domainName"]
})
}
}
}
target_parameters {
input_template = <<EOF
$.data
EOF
}
}
This issue is not resolved, the same exact error and output in my original opening of the issue is still happening.
Terraform v1.5.2
on darwin_amd64
+ provider registry.terraform.io/hashicorp/aws v5.9.0
can we reopen this issue ? or should i create a new one ?
cc @justinretzolk
also when I tried this combination as well, didn't work, same error, may be just relax the validation rule , if it's in terraform ?
resource "aws_pipes_pipe" "patient-events-stream-pipe" {
name = "name"
role_arn = var.role_arn
source = var.source_kinesis_stream_arn
target = var.api_destination_arn
source_parameters {
kinesis_stream_parameters {
batch_size = 1
starting_position = "TRIM_HORIZON"
maximum_record_age_in_seconds = 60
maximum_retry_attempts = 3
dead_letter_config {
arn = var.sqs_dlq_arn
}
}
}
target_parameters {
input_template = <<EOF
$.data
EOF
}
}
Can this issue be re-open as I am facing the same error?
Edit: destroying and re-deploying the pipe seems to fix it somehow.
This functionality has been released in v5.27.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.
For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!
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.
Terraform Core Version
v1.5.2
AWS Provider Version
5.6.2
Affected Resource(s)
aws_pipes_pipe
Expected Behavior
You should be able to update a Pipe in place
Actual Behavior
Any change to a pipe, including tags, that requires an "update in-place" action results in an error.
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None