首页 > 解决方案 > Aws Lambda 写入 Firebase 存储

问题描述

我想使用AWS Lambda将下载的文件写入 Firebase存储。我已经写了一个用于消防的动态链接

有人可以提示我该怎么做吗?我已经为 s3 做好了准备,我现在想将它存储在 Firestorage 中。


    def lambda_handler(event, context):
        
        url='https://www.google.com/index.html' # put your url here
        bucket = 'google-list' #your s3 bucket
        key = 'index.html' #your path
        #write to s3 want to replace with firestorage.
        #s3=boto3.client('s3')
        #http=urllib3.PoolManager()
        #s3.upload_fileobj(http.request('GET', url,preload_content=False), bucket, key, ExtraArgs={'ACL':'public-read'})```


    

标签: amazon-web-servicesfirebasegoogle-cloud-firestoreaws-lambdafirebase-storage

解决方案


推荐阅读