-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
B add filter to iot_thing_indexing_configuration #26862
B add filter to iot_thing_indexing_configuration #26862
Conversation
Community NoteVoting for Prioritization
For Submitters
|
@HashiCoop any update on it? what's the ETA? |
The functionality is currently broken since aws introduced this change: https://awsapichanges.info/archive/changes/0a7be3-iot.html |
fd7b3c0
to
a00e495
Compare
a00e495
to
71906b3
Compare
Hey, Can somebody review the PR and merge the changes? @breathingdust Thanks in advance! |
Any news on when this can be merged? |
AWS updated the [Create|Get|Update]IndexingConfiguration requests with a new optional parameter: filter This filter attribute IS required now, when named_shadow_indexing_mode is set to ON. https://docs.aws.amazon.com/iot/latest/apireference/API_ThingIndexingConfiguration.html If filter is missing in the described case above, then the following error message is returned: Error: error updating IoT Indexing Configuration: InvalidRequestException: NamedShadowNames Filter must not be empty for enabling NamedShadowIndexingMode
add expand and flatten functions for filter.named_shadow_names array
Add example for filter with named_shadow_name
resource/aws_iot_indexing_configuration: Add filter to thing_indexing_configuration, resolving `InvalidRequestException: NamedShadowNames Filter must not be empty for enabling NamedShadowIndexingMode` error
fix wrongly named parameter for filter
fix typo on `named_shadow_names`
set interface array for filter when deserializing instead of map
71906b3
to
fe1bdfe
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀.
Before
% make testacc TESTARGS='-run=TestAccIoTIndexingConfiguration_serial' PKG=iot
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/iot/... -v -count 1 -parallel 20 -run=TestAccIoTIndexingConfiguration_serial -timeout 360m
=== RUN TestAccIoTIndexingConfiguration_serial
=== PAUSE TestAccIoTIndexingConfiguration_serial
=== CONT TestAccIoTIndexingConfiguration_serial
=== RUN TestAccIoTIndexingConfiguration_serial/basic
=== RUN TestAccIoTIndexingConfiguration_serial/allAttributes
indexing_configuration_test.go:64: Step 1/2 error: Error running apply: exit status 1
Error: updating IoT Indexing Configuration: InvalidRequestException: NamedShadowNames Filter must not be empty for enabling NamedShadowIndexingMode
with aws_iot_indexing_configuration.test,
on terraform_plugin_test.tf line 2, in resource "aws_iot_indexing_configuration" "test":
2: resource "aws_iot_indexing_configuration" "test" {
--- FAIL: TestAccIoTIndexingConfiguration_serial (28.95s)
--- PASS: TestAccIoTIndexingConfiguration_serial/basic (21.73s)
--- FAIL: TestAccIoTIndexingConfiguration_serial/allAttributes (7.23s)
FAIL
FAIL github.com/hashicorp/terraform-provider-aws/internal/service/iot 33.982s
FAIL
make: *** [testacc] Error 1
After
% make testacc TESTARGS='-run=TestAccIoTIndexingConfiguration_serial' PKG=iot
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/iot/... -v -count 1 -parallel 20 -run=TestAccIoTIndexingConfiguration_serial -timeout 360m
=== RUN TestAccIoTIndexingConfiguration_serial
=== PAUSE TestAccIoTIndexingConfiguration_serial
=== CONT TestAccIoTIndexingConfiguration_serial
=== RUN TestAccIoTIndexingConfiguration_serial/basic
=== RUN TestAccIoTIndexingConfiguration_serial/allAttributes
--- PASS: TestAccIoTIndexingConfiguration_serial (43.69s)
--- PASS: TestAccIoTIndexingConfiguration_serial/basic (22.00s)
--- PASS: TestAccIoTIndexingConfiguration_serial/allAttributes (21.68s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/iot 49.206s
@Oltier Thanks for the contribution 🎉 👏. |
…: 0 or 2; Actual: 1]'.
This functionality has been released in v5.23.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 pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Change summary
Update the [Create|Get|Update]IndexingConfiguration requests with a new optional parameter: filter
Change details
AWS has introduced a breaking change, making
filter
attribute required, whennamed_shadow_indexing_mode
is set to ON.https://docs.aws.amazon.com/iot/latest/apireference/API_ThingIndexingConfiguration.html
https://awsapichanges.info/archive/changes/0a7be3-iot.html
If filter is missing in the described case above, then the following error message is returned when trying to add a similar configuration:
Closes #27532
Output from acceptance testing: