I\'m trying to import a SQL file from S3 bucket to EC2 instance.
The SQL file is publicly accessible and with the help of mysql client installed in the instance I\'m ex
You can't reliably do this in one step. You have to download the file, then load the local (downloaded) copy into MySQL.
$ wget https://s3-ap-southeast-1.amazonaws.com/{sql-file} -O some-local-filename.sql $ mysql [options] mysql> source some-local-filename.sql