I am new to AWS CLI and I am trying to export my DynamoDB table in CSV format so that I can import it directly into PostgreSQL. Is there a way to do that using AWS CLI?
I came across this command: aws dynamodb scan --table-name <table-name>
- but this does not provide an option of a CSV export.
With this command, I can see the output in my terminal but I am not sure how to write it into a file.