• AWS IAM, Boto3 and Python: Complete Guide with examples

    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 IAM. IAM (Identity & Access Management) can be used to create new AWS users, manage their permissions, create new policies and much more.

    Read on →

  • AWS SNS, Boto3 and Python: Complete Guide with examples

    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 SNS. Simple Notification Service (SNS) enables message delivery from publishers to subscribers.

    Read on →

  • AWS Secrets Manager, Boto3 and Python: Complete Guide with examples

    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 Secrets Manager.

    Read on →

  • Boto 3: Resource vs Client

    Introduction

    AWS’ Boto3 library is used commonly to integrate Python applications with various AWS services. The two most commonly used features of boto3 are Clients and Resources. In this article, we will look into each one of these and explain how they work and when to use them.

    Read on →

  • How to test your AWS KMS code using Moto and Pytest

    Introduction

    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.

    Read on →