terraform-provider-aws: 3.14.0 Regression: Error: InvalidParameter: 1 validation error(s) found. - minimum field size of 1, ListTargetsByRuleInput.EventBusName.
Looks like 3.14.0 has a regression.
My code deployment process which runs every couple hours just started failing today. I also noticed that an hour ago 3.14 of this package was released. I’m getting a bunch of these errors when I run a plan operation. This is blocking my deployments. I’ll try and specify the old version of this package in my code but you should try and resolve this quickly.
Error: InvalidParameter: 1 validation error(s) found.
- minimum field size of 1, ListTargetsByRuleInput.EventBusName.


About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 111
- Comments: 31 (6 by maintainers)
Links to this issue
Commits related to this issue
- resource/aws_cloudwatch_event_target: Include state upgrade for new default event bus name in Read path and only include EventBusName when non-empty in API requests Reference: https://github.com/hash... — committed to hashicorp/terraform-provider-aws by bflad 4 years ago
- Update terraform to not use broken version: https://github.com/hashicorp/terraform-provider-aws/issues/16069 — committed to nasa/cumulus by Jkovarik 4 years ago
- resource/aws_cloudwatch_event_target: Include state upgrade for new default event bus name in Read path and only include EventBusName when non-empty in API requests (#16075) Reference: https://github... — committed to hashicorp/terraform-provider-aws by bflad 4 years ago
Update: Specifying 3.13.0 let my Terraform Plan command and deployment work.
Skipping 3.14.0 fixes my failing pipelines - and should allow for next version up
I also experience this issue with version 3.14.0
The fix for this has been merged and will release with version 3.14.1 of the Terraform AWS Provider, in the next 20-30 minutes. 👍
Marking as 3.15.0, but we may release as 3.14.1.
This worked for me too.
Same issue
Confirm new version (3.14.1) fixed it for us. Thanks for jumping on this quickly team!
This has been released in version 3.14.1 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 for triage. Thanks!
I have pinned the previous version for now
and it works
Same. From what I can tell it appears to be the ‘aws_cloudwatch_event_target’ which is supposed to have a default value for ‘event_bus_name’ but instead throws an error. #15799
Seems related to some names length. Provider 3.14 works perfectly fine for my resources with shorter names, fails for the same code but a few letters more in the name. (fine) glue-crawler-event-compressed-sns-topic-dev (fine) glue-crawler-event-compressed-sns-topic-test (fail) glue-crawler-event-compressed-sns-topic-research (fail) glue-crawler-event-compressed-sns-topic-stagingedit: it seems that 3.14 is failing for other envs tooThe resources that I am creating in the module are aws_cloudwatch_event_rule, aws_cloudwatch_event_target, and aws_sns_topic
If we are going to do the pinning we would need to change this and re-run potentially 300 workspaces.
It seems the problem is linked to state migration from
3.13.xto3.14.0Simple example to reproduce:
Change
version = "3.13.0"toversion = "3.14.0"Applying from scratch in
3.14.0works.I have the same error
Error: InvalidParameter: 1 validation error(s) found.
| - minimum field size of 1, ListTargetsByRuleInput.EventBusName. |
we’re having the same failure with 3.14.0 and using
aws_cloudwatch_event_targetseems to be this update: https://github.com/hashicorp/terraform-provider-aws/pull/15799