I am new to aws-cli and I am trying to export my dynamodb table as a CSV so that I can import it directly into postgresql. Is there a way to do that using aws-cli?
So far I have come across this command aws dynamodb scan --table-name . But this does not provide an option of a CSV export. Also, through this command, I can get the output on my command prompt but I am not sure how to write it in a file.