简体   繁体   English

有没有办法使用 lambda 将数据从 S3 导出到 Amazon Aurora 无服务器?

[英]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关于加载数据的讨论

MySQL "load data" reference MySQL“加载数据”参考

Copying from s3 从 s3 复制

Using MySQL options files使用 MySQL 选项文件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 从 Aurora Serverless 导出到 S3 - Export from Aurora Serverless into S3 使用 outfile 将数据从 Amazon Aurora 导出到 S3? - Export data from Amazon Aurora to S3 using outfile? 使用 AWS Glue 将数据从 S3 加载到 Aurora Serverless - Load data from S3 into Aurora Serverless using AWS Glue 将数据从 S3 移动到 Amazon Aurora Postgres - Move data from S3 to Amazon Aurora Postgres 如何将数据从Amazon Aurora MySQL卸载到Amazon S3(如Amazon Redshift)? - How can I unload data from Amazon Aurora MySQL to Amazon S3 like Amazon Redshift? Amazon Aurora 1.8 从 S3 加载数据 - 无法实例化 S3 客户端 - Amazon Aurora 1.8 Load Data From S3 - Cannot Instantiate S3 Client 无服务器:使用来自 S3 的代码部署 lambda - serverless: deploy lambda with code from S3 我可以使用 lambda 将数据从 s3 导出到 dynamoDB 吗? - Can I export data from s3 to dynamoDB using lambda? Amazon Aurora PostgreSQL SELECT INTO OUTFILE S3 - Amazon Aurora PostgreSQL SELECT INTO OUTFILE S3 如何使用带有制表符分隔符的“aws_s3.query_export_to_s3”从 RDS/Aurora 导出到 S3? - How to export to S3 from RDS / Aurora using `aws_s3.query_export_to_s3` with a tab delimiter?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM