sek*_*aka 10 python amazon-web-services aws-lambda
我正在制作 AWS Lambda 函数。现在我想要isinstance(context,LambdaContext),我期待它在 AWS Lambda 中工作。但我在本地运行单元测试。
那么如何导入 LambdaContext。
最好的事物
您可以尝试使用LocalStack:
LocalStack 为开发云应用程序提供了一个易于使用的测试/模拟框架。
目前,重点主要是支持 AWS 云堆栈。
LocalStack 在本地计算机上启动以下核心云 API:
API 网关位于http://localhost:4567
Kinesis 位于http://localhost:4568
DynamoDB 位于http://localhost:4569
DynamoDB 流位于http://localhost:4570
Elasticsearch http://localhost:4571
Firehose 位于http://localhost:4573
Lambda 位于http://localhost:4574
SNS 地址:http://localhost:4575
Redshift 位于http://localhost:4577
ES(Elasticsearch 服务)位于http://localhost:4578
SES 位于http://localhost:4579
Route53 位于http://localhost:4580
CloudFormation 位于http://localhost:4581
CloudWatch http://localhost:4582