[Docs]: kinesis_firehose_delivery_stream #29092
Labels
documentation
Introduces or discusses updates to documentation.
service/firehose
Issues and PRs that pertain to the firehose service.
Milestone
Documentation Link
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/kinesis_firehose_delivery_stream
Description
There are two minor problems I have found.
1 A delivery stream cannot be updated when enabling dynamic partitioning.
When defining a delivery stream with dynamic partitioning, you must create a new delivery stream and cannot update an existing delivery stream.
This is a known limitation within AWS.
This could be highlighted in the provider documentation to simplify debugging.
The
dynamic_partitioning_configuration
block makes things confusing because one might assume that this can be toggled. However, changing this configuration does not destroy and recreate the stream (as would be required to effect the change that is desired).In other words, if you want to enable dynamic partitioning configuration on an existing stream, it must first be deleted, regardless of any configuration.
2 Missing configuration block
You must include the
dynamic_partitioning_configuration
block otherwise the apply will fail with the error:Error: creating Kinesis Firehose Delivery Stream: InvalidArgumentException: Dynamic Partitioning Namespaces can only be part of a prefix expression when Dynamic Partitioning is enabled.
The example given in the documentation does not include this block.
The error message therefore is a little ambiguous; it seems to indicate a problem with the prefix expression and it is not obvious that
dynamic_partitioning_configuration
should be specified.References
https://docs.aws.amazon.com/firehose/latest/dev/dynamic-partitioning.html
Within "How to enable dynamic partitioning" :
Also
Would you like to implement a fix?
Yes
The text was updated successfully, but these errors were encountered: