Ver código fonte

chore: updte change log

firest 1 ano atrás
pai
commit
46f339dfab

+ 1 - 1
apps/emqx_bridge_dynamo/src/emqx_bridge_dynamo_connector.erl

@@ -136,7 +136,7 @@ create_channel_state(
     Keys = maps:with([hash_key, range_key], Conf),
     Keys1 = maps:fold(
         fun(K, V, Acc) ->
-            Acc#{K := erlang:binary_to_atom(V)}
+            Acc#{K := erlang:binary_to_existing_atom(V)}
         end,
         Keys,
         Keys

+ 6 - 0
changes/ee/fix-12895.en.md

@@ -0,0 +1,6 @@
+Complemented some necessary but missed keys for the DynamoDB connector and the action.
+
+## Breaking changes
+* The old configuration no longer works, although it actually didn't work properly until this fix.
+* For DynamoDB connector, a new key `region` is necessary.
+* `hash_key` and `range_key` are now supported in the DynamoDB action, and `hash_key` is required.

+ 2 - 2
rel/i18n/emqx_bridge_dynamo_connector.hocon

@@ -18,8 +18,8 @@ table.desc:
 table.label:
 """Table """
 
-region.label:
-"""Region of the AWS Dynamo"""
+region.desc:
+"""Region of AWS Dynamo"""
 
 url.desc:
 """The url of DynamoDB endpoint."""