简体   繁体   English

模拟AWS服务进行测试

[英]Mock AWS services for testing

I am looking for ways to test AWS services without actually using AWS cloud. 我正在寻找在不实际使用AWS云的情况下测试AWS服务的方法。 Python is the language of choice. Python是首选语言。

Using some mock components which will let me test my code which uses AWS S3, Redshift, Lambda, Dynamodb etc 使用一些模拟组件,让我测试使用AWS S3,Redshift,Lambda,Dynamodb等的代码

So far I have found, 到目前为止,我发现,

  1. Localstack (This supports most of the AWS services) Localstack (这支持大多数AWS服务)
  2. Minio - This one supports S3 and Lambda Minio - 这个支持S3和Lambda
  3. s3rver - supports only AWS S3 s3rver - 仅支持AWS S3

Are there any other options? 还有其他选择吗?

Are you using boto3 to access the AWS resources? 您使用boto3访问AWS资源吗? If so, it sounds like moto is perfect for what you need https://github.com/spulec/moto 如果是这样,听起来moto非常适合您的需求https://github.com/spulec/moto

You can also use Commandeer to view the complete localstack (as well as AWS) environment from a desktop app. 您还可以使用Commandeer从桌面应用程序查看完整的localstack(以及AWS)环境。 在此输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM