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
What about not downloading the file, but directly pushing into the MySQL DB ?
aws s3 cp s3://''/''.sql.gz - | gunzip | mysql --host=127.0.0.1 \ --user='' \ --password='' \ --port=3306
or,
aws s3 cp s3://''/''.sql - | mysql --host=127.0.0.1 \ --user='' \ --password='' \ --port=3306