---
title: "Discussion on \"Using moto and freezegun to test old AWS IAM User Access Keys\" | Hashnode"
description: "Discussion on \"Using moto and freezegun to test old AWS IAM User Access Keys\". Recently I had to develop a lambda that deletes Access Keys from AWS IAM Users that are past a certain age. To test this I had to create Access Keys that have a create date in the past, however, an access key that is created with boto3's create_acces..."
url: "https://hashnode.com/posts/using-moto-and-freezegun-to-test-old-aws-iam-user-access-keys/6408cfda4b4818e3636f6ded"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Using moto and freezegun to test old AWS IAM User Access Keys](https://ronaldvaneede.me/using-moto-and-freezegun-to-test-old-aws-iam-user-access-keys?utm_source=hashnode&utm_medium=feed)

Recently I had to develop a lambda that deletes Access Keys from AWS IAM Users that are past a certain age. To test this I had to create Access Keys that have a create date in the past, however, an access key that is created with boto3's create\_acces...

Mar 8, 2023 · 1 min read · ronaldvaneede.me  
Read the article

-   [#iam](https://hashnode.com/tag/iam)
-   [#aws](https://hashnode.com/tag/aws)
-   [#testing](https://hashnode.com/tag/testing)
-   [#python](https://hashnode.com/tag/python)
-   [#boto3](https://hashnode.com/tag/boto3)

## Written by

[Ronald van Eede](https://hashnode.com/@ronaldvaneede)

@ronaldvaneede · Netherlands

  
[View profile](https://hashnode.com/@ronaldvaneede)

Cloud Engineer

Hi, I am a cloud engineer from Barneveld, The Netherlands. I specialize in AWS but also do some backend and frontend development. I am currently employed full-time and am a mentor at CoderDojo Amersfoort, The Netherlands. Please feel free to get in touch if you have any questions for me.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
