# AWS snapshot policy

**URL:** <https://forum.ansible.com/t/aws-snapshot-policy/45099>\
**Category:** Get Help\
**Tags:** aws\
**Created:** [January 14, 2026, 8:26am UTC](https://forum.ansible.com/t/aws-snapshot-policy/45099 "2026-01-14T08:26:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![a\_automation](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@a\_automation](https://forum.ansible.com/u/a_automation)\
**Post date:** [January 14, 2026, 8:26am UTC](https://forum.ansible.com/t/aws-snapshot-policy/45099/1 "2026-01-14T08:26:57Z")

</div>

I would like to create a snapshot policy with Ansible for AWS EC2. I did not find anything in community.aws nor in amazon.aws.  
This there something?

Best regards  
Andreas

---

<div class="post-metadata">

**Author:** ![U880D](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/u880d/32/10032_2.png) [@U880D](https://forum.ansible.com/u/U880D)\
**Post date:** [January 14, 2026, 9:27am UTC](https://forum.ansible.com/t/aws-snapshot-policy/45099/2 "2026-01-14T09:27:01Z")

</div>

Accordung [`amazon.aws`](https://docs.ansible.com/projects/ansible/latest/collections/amazon/aws/index.html) there seems to be nothing specific. But since the [policies](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ExamplePolicies_EC2.html) are just JSON, one could probably just use the `uri` module instead. Or write an own custom module.

---

<div class="post-metadata">

**Author:** ![MukeshA](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/mukesha/32/10085_2.png) [@MukeshA](https://forum.ansible.com/u/MukeshA)\
**Post date:** [January 14, 2026, 11:35am UTC](https://forum.ansible.com/t/aws-snapshot-policy/45099/3 "2026-01-14T11:35:58Z")

</div>

This module will help you creating snapshots

amazon.aws.ec2\_snapshot module

check this documentation.

> **[amazon.aws.ec2\_snapshot module – Creates a snapshot from an existing volume —...](https://docs.ansible.com/projects/ansible/latest/collections/amazon/aws/ec2_snapshot_module.html)**

> **[community.aws.ec2\_snapshot\_copy module – Copies an EC2 snapshot and returns...](https://docs.ansible.com/projects/ansible/latest/collections/community/aws/ec2_snapshot_copy_module.html)**

Thanks  
Mukesh

---

<div class="post-metadata">

**Author:** ![a\_automation](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@a\_automation](https://forum.ansible.com/u/a_automation)\
**Post date:** [January 17, 2026, 7:46am UTC](https://forum.ansible.com/t/aws-snapshot-policy/45099/4 "2026-01-17T07:46:55Z")

</div>

Thank you for the answers.  
In a first by using the command aws dlm create-lifecycle-policy step I encountered permission problems I need to solve first.

# An error occurred (AccessDeniedException) when calling the CreateLifecyclePolicy operation: Cross-account pass role is not allowed.

I can create a Lifecyclepolicy in the AWS console but the same user is not allowed to do it with aws cli.

Best regards  
Andreas
