[英]Is there a way to export data from S3 to Amazon Aurora serverless with lambda?
So I was searching for a solution that could let me export S3 data into Aurora Serverless.所以我正在寻找一种解决方案,可以让我将 S3 数据导出到 Aurora Serverless。 I know that the LOAD DATA request is only available for the Aurora cluster not the serverless one.我知道 LOAD DATA 请求仅适用于 Aurora 集群,而不适用于无服务器集群。 I've found some documentation about the data injection from S3 to RDS MySQL but I don't know if this still applies to Amazon Aurora MySQL.我找到了一些关于从 S3 到 RDS MySQL 的数据注入的文档,但我不知道这是否仍然适用于 Amazon Aurora MySQL。
If you're ok with temporarily putting the data on an ec2 instance, you can do it in two steps:如果您可以暂时将数据放在 ec2 实例上,则可以分两步完成:
aws s3 cp s3://path/to/mydatafile /local/path/to/mydatafile
mysql --defaults-file=/path/to/.my.cnf -e "load data local infile '/local/path/to/mydatafile' into table sampletable"
References参考
StackOverflow discussion on loading data StackOverflow关于加载数据的讨论
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.