1 Risposta
- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
1
To save an IoT Events state transition event to DynamoDB, you need to configure an action on the rule that detects the state transition.
- When you create the rule, under "Set one or more actions", select "Add action". Then choose the "DynamoDBv2" action and configure it to write to an existing DynamoDB table.
- The action will write the payload of the IoT Events message to the DynamoDB table. Make sure the IAM role used by IoT Events has the necessary permissions to write to DynamoDB.
- You can also use other AWS services like Lambda as an intermediate step to process the payload before writing to DynamoDB. For example:
1. IoT Events detects state transition and invokes Lambda function
2. Lambda function processes payload
3. Lambda writes processed data to DynamoDB
Contenuto pertinente
- AWS UFFICIALEAggiornata 2 anni fa
- AWS UFFICIALEAggiornata 2 anni fa
- AWS UFFICIALEAggiornata 2 anni fa
Hi Giovanni, thanks for the response. It helps me a lot. I was able to configure an action for "DynamoDB" but not "DynamoDBv2". It inserted a record in the table after the event was detected. Could you please help me on how to configure the "DynamoDBv2" action? I entered the name of the table inside single quotes. There is nothing else to configure. It did not insert a record into the table.