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 Answer
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
EXPERT
answered a year ago
  • Thanks!  How do I wait until the backup is done before I can process the next steps?

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions