
AWS
微wx笑
无知人生,记录点滴 不积跬步,无以至千里;不积小流,无以成江海……
-
原创 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:2314063
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:21714
0
-
原创 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:51810
0
-
原创 关于 aws lambda 使用spring 的dependency injection 的问题
最近,有个小伙伴提了一个问题:aws lambda 能使用spring 的依赖注入(dependency injection) 吗?怎么 @Autowired 等注解都不生效?我抽空学习研究了一下,得到以下结论:一、能用吗?答案应该是能,但也存在限制(我还没有写代码测试);但是我觉得没有必要用!原因:1、ServerLess 我觉得通常都是部署比较小的代码块,用很少的代码来实现一个或一部分关键功能...2018-04-04 14:20:50445
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:125081
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:26413
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:072320
0