-
Notifications
You must be signed in to change notification settings - Fork 9.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aws_lambda_event_source_mapping, attribute queues
is misleading
#31919
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
Hey @Tuzosdaniel12 👋 Thank you for taking the time to raise this! The
In this case, the AWS Provider has followed the design principle of closely matching the underlying API, which is why the argument is a list type, despite my agreeing with you that it's a bit of an odd case (though not entirely unique in the context of the AWS API), and definitely see how it could cause confusion. With that in mind, I would say that this is indeed expected behavior, and that the argument should be left as is. |
As a follow up here, I noticed that neither the
I'd like to raise a pull request to make this more clear. Thank you again for taking the time to raise this and call it out! |
This functionality has been released in v5.6.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! |
Thank you for the support! |
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. |
Description
Small observation after spending a day trying to understand validation failure when creating
aws_lambda_event_source_mapping
. After going back and carefully reading the docs I found that issue came fromqueues
attribute.At first glance one can assumed that
queues = ["example"]
will accept an array of strings with different queueIn result I created my resource in the following format.
Which resulted in the following error.
After banging my head I reread the docs and I soon understood that I could only send in a single string in the array.
So I changed my code to do each queue in a loop.
Is this the intended behavior? If yes, should the attribute name change to
queues = "example"
since is only accepts single value?References
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lambda_event_source_mapping
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: