You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(parameter): add dynamodb_endpoint_url for local_testing (#376)
* Dynamodb endpoint_url for local testing
* Add endpoint_url parameter on docstring
* docs: fix typo and project name
Signed-off-by: heitorlessa <[email protected]>
* feat: use a tab snippet to standout
Signed-off-by: heitorlessa <[email protected]>
* fix: endpoint_url parameter syntax
Signed-off-by: heitorlessa <[email protected]>
* docs: include example url in docstring
Co-authored-by: heitorlessa <[email protected]>
Copy file name to clipboardExpand all lines: docs/utilities/parameters.md
+11
Original file line number
Diff line number
Diff line change
@@ -196,6 +196,17 @@ The AWS Systems Manager Parameter Store provider supports two additional argumen
196
196
197
197
The DynamoDB Provider does not have any high-level functions, as it needs to know the name of the DynamoDB table containing the parameters.
198
198
199
+
**Local testing with DynamoDB Local**
200
+
201
+
You can initialize the DynamoDB provider pointing to [DynamoDB Local](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.html) using **`endpoint_url`** parameter:
202
+
203
+
=== "dynamodb_local.py"
204
+
```python hl_lines="3"
205
+
from aws_lambda_powertools.utilities import parameters
**DynamoDB table structure for single parameters**
200
211
201
212
For single parameters, you must use `id` as the [partition key](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.CoreComponents.html#HowItWorks.CoreComponents.PrimaryKey) for that table.
0 commit comments