Step function - EmrActivity

0

Hi,

I have an EmrActivity step on the data pipeline that backups the dynamoDB and stores it in S3. I would like to use this functionality on a step function or something other than Data Pipeline. If this is possible, how do I accomplish this? Enter image description here

1 回答
0

You could probably use the export-table-to-point-in-time https://docs.aws.amazon.com/cli/latest/reference/dynamodb/export-table-to-point-in-time.html

The SDK operation can be invoked from StepFunction, ASL would like something like this.

Comment: A description of my state machine
StartAt: ExportTableToPointInTime
States:
  ExportTableToPointInTime:
    Type: Task
    End: true
    Parameters:
      S3Bucket: S3Bucket
      TableArn: MyDynamoDBARN
    Resource: arn:aws:states:::aws-sdk:dynamodb:exportTableToPointInTime

Point in time recovery MUST be enabled on the DynamoDB table.

profile picture
专家
已回答 1 年前
  • Thanks!  How do I wait until the backup is done before I can process the next steps?

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则