AWS’ Boto library is used commonly to integrate Python applications with various AWS services. I have generally avoided writing unit-tests for application code that interacts with the boto library because of the complexity involved in mocking and testing these functions.
However, I recently tried out the Moto library which makes it easy to mock AWS services and test code that interacts with AWS.
Some of the benefits of using Moto:
- Testing code that interacts with AWS. Instead of having to test your code in an AWS environment, test AWS interactions locally.
- Easy to learn and get started with.
- Extensive coverage of AWS services.
In this article, we will look at how to add unit tests for AWS KMS using Moto.
AWS Boto3 is the Python SDK for AWS. Boto3 can be used to directly interact with AWS resources from Python scripts. In this tutorial, we will look at how we can use the Boto3 library to perform various operations on AWS KMS.
Amazon Elastic File System (EFS) is a fully-managed shared file storage service. EFS can be used easily with various AWS services such as EC2. It provides a lot of benefits such as scalability, availability, and durability.
AWS has a lot of different instance types and it can be difficult to decide which instance type would be the best for your application. In this article, we will compare three instance types, I3, R6g and M6g offers across various dimensions such as their specs, performance and cost.
AWS has a lot of different instance types and it can be difficult to decide which instance type would be the best for a particular use-case. In this article, we will compare three popular instance types: T4g and M6g across various dimensions such as their specs, their performance as well theircost.