【问题标题】:Cannot upload thumbnail to an Amazon S3 target bucket无法将缩略图上传到 Amazon S3 目标存储桶
【发布时间】:2021-10-27 23:46:47
【问题描述】:

我最近开始学习 AWS。我正在学习使用 AWS lambda 和 Amazon S3 的 AWS 教程。我正确执行了大多数步骤,但是当我尝试将图像的缩略图从源存储桶获取到调整大小的存储桶时,就会出现问题。 我正在使用 AWS-CLI 命令

aws lambda invoke --function-name thumbnail-s3 --invocation-type RequestResponse --payload file://inputFile.txt --cli-binary-format raw-in-base64-out outputFile.txt

我得到了一个

{
    "StatusCode": 200,
    "ExecutedVersion": "$LATEST"
}

这意味着执行成功,但是当我检查我的 s3 调整大小的存储桶时,我没有看到缩略图。谁能帮我解决这个问题?

【问题讨论】:

  • 您可以添加任何调试,然后检查 CloudWatch 日志吗?验证它是否达到了您期望的代码

标签: amazon-web-services amazon-s3 aws-lambda


【解决方案1】:

仅仅通过函数调用和响应是无法猜测发生了什么的。您可以在 s3 上传功能中添加更多调试日志以获取更多详细信息。 如何访问 lambda 的 cloudwatch 日志: https://docs.aws.amazon.com/lambda/latest/dg/monitoring-cloudwatchlogs.html https://docs.aws.amazon.com/lambda/latest/dg/troubleshooting-execution.html

【讨论】:

    猜你喜欢
    • 2018-04-04
    • 2020-02-14
    • 1970-01-01
    • 2011-09-10
    • 2023-02-26
    • 2023-03-10
    • 2017-07-18
    • 2018-03-25
    • 1970-01-01
    相关资源
    最近更新 更多