-
Notifications
You must be signed in to change notification settings - Fork 1
/
add-items-to-dynamodb.yaml
48 lines (41 loc) · 1.3 KB
/
add-items-to-dynamodb.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
id: add-items-to-dynamodb
namespace: company.team
tasks:
- id: first_item_as_map
type: io.kestra.plugin.aws.dynamodb.PutItem
item:
id: 1
flow: "{{ flow.id }}"
task: "{{ task.id }}"
- id: second_item_as_json
type: io.kestra.plugin.aws.dynamodb.PutItem
item: |
{
"id": 2,
"flow": "{{ flow.id }}",
"task": "{{ task.id }}"
}
pluginDefaults:
- type: io.kestra.plugin.aws.dynamodb.PutItem
values:
tableName: demo
region: "{{ secret('AWS_DEFAULT_REGION') }}"
accessKeyId: "{{ secret('AWS_ACCESS_KEY_ID') }}"
secretKeyId: "{{ secret('AWS_SECRET_ACCESS_KEY') }}"
extend:
title: Add a new item to a DynamoDB table
description: >-
This flow adds an item to a DynamoDB table.
The `item` property can be either a map or a JSON string.
The `tableName` property must point to an already existing DynamoDB table.
The `region` property must be a valid AWS region.
It's recommended to set the `accessKeyId` and `secretKeyId` properties as
secrets.
This flow assumes AWS credentials stored as secrets `AWS_ACCESS_KEY_ID`,
`AWS_SECRET_ACCESS_KEY` and `AWS_DEFAULT_REGION`.
tags:
- AWS
- Ingest
ee: false
demo: false
meta_description: Add items to DynamoDB tables using this flow