
AWS
文章平均质量分 81
普通网友
这个作者很懒,什么都没留下…
展开
-
Could not parse request body into json: Unrecognized token 'xxx': was expecting ('true', 'false' or
在调用 Lambda 函数时你可能遇到以下错误:==================== INVOCATION ERROR ====================com.amazonaws.services.lambda.model.InvalidRequestContentException: Could not parse request body into json: Unrecogniz...原创 2018-03-30 11:50:23 · 16449 阅读 · 2 评论 -
No serverless.template file found in your project root.
问题复现:当你在一个不是使用 serverless 模板创建的项目上使用 Deploy Serverless Project 功能时,就会遇到这个提示。如下图:serverless 是什么?什么是 AWS Lambda?AWS 的 serverless 和 Lambda 是什么关系?一个是概念,一个 是实现。AWS Toolkit for Eclipse 是什么?但是你会发现一个问题:AWS T...原创 2018-04-03 14:59:21 · 1498 阅读 · 1 评论 -
aws lambda 安装 SAM Local 遇到错误:EACCES: permission denied, mkdir
aws lambda 安装 SAM Local 遇到错误:> aws-sam-local@0.2.8 postinstall /usr/local/lib/node_modules/aws-sam-local> go-npm install/usr/local/lib/node_modules/aws-sam-local/node_modules/mkdirp/index.js:...原创 2018-03-28 16:42:51 · 1200 阅读 · 0 评论 -
关于 aws lambda 使用spring 的dependency injection 的问题
最近,有个小伙伴提了一个问题:aws lambda 能使用spring 的依赖注入(dependency injection) 吗?怎么 @Autowired 等注解都不生效?我抽空学习研究了一下,得到以下结论:一、能用吗?答案应该是能,但也存在限制(我还没有写代码测试);但是我觉得没有必要用!原因:1、ServerLess 我觉得通常都是部署比较小的代码块,用很少的代码来实现一个或一部分关键功能...原创 2018-04-04 14:20:50 · 680 阅读 · 0 评论 -
安装 AWS Command Line Interface 失败 Could not find a version that satisfies the requirement awscli
安装 AWS Command Line Interfacesudo pip install awscli --upgrade --userThe directory '/Users/aven/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been...原创 2018-03-29 10:59:12 · 5775 阅读 · 2 评论 -
Failed to load iam role in US East (N. Virginia): java.lang.NullPointerException.
在使用功能时,你可能会遇到错误:Failed to load iam role in US East (N. Virginia): java.lang.NullPointerException.这是因为没有配置证书 credentials,关于配置证书,你需要参考:https://docs.aws.amazon.com/zh_cn/cli/latest/userguide/cli-config-f...原创 2018-03-29 15:15:26 · 658 阅读 · 0 评论 -
AWS 无服务器项目 与 AWS lambda 有什么区别?
在AWS Toolkit for Eclipse的用户指南中,我们能看到 无服务器项目 和 AWS Lambda,我按照指南分别创建了两个项目。1、无服务器项目:package com.serverless.demo.function;import com.amazonaws.services.lambda.runtime.Context;import com.amazonaws.serv...原创 2018-03-29 16:05:07 · 3068 阅读 · 0 评论