Repository navigation
StepFunctions
Norman Khine edited this page Dec 14, 2023
·
5 revisions
Audio file gets uploaded to S3 which triggers the transcription workflow.

Worflow used in registering users in AWS Cognito Pool

- Initiate snapshot and record snapshot metadata in DynamoDb table (this is done in es-backup)
- Once the native snapshot is complete, create a new ES cluster in the region and restore the snapshot into that
- Update the custom domain (https://aws.amazon.com/about-aws/whats-new/2020/11/amazon-elasticsearch-service-now-supports-defining-a-custom-name-for-your-domain-endpoint/) for that endpoint on Route53
- Delete old ES cluster in that region if ES cluster exists.


- API Gateway post request
curl https://qfkutwiza6.execute-api.eu-west-1.amazonaws.com/prod/dynamo -H 'X-Api-Key: ***' -d '{"prefix": "PRODUCTION_", "db_region": "eu-west-1", "regions": ["eu-west-3","eu-south-1"], "environment": "prod"}'
Start a step function, to:
- access the region and list all the dynamoDB tables with prefix which was set in the post request
- for each table:
- enable backup if it isn't enabled
- create a backup - https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DataExport.Requesting.html and export it to S3 (https://aws.amazon.com/premiumsupport/knowledge-center/back-up-dynamodb-s3/)
- wait for it to complete

base-BaseDynamoDBBackupRestoreArchitecture.drawio.png
