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
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
Accordung amazon.aws there seems to be nothing specific. But since the policies are just JSON, one could probably just use the uri module instead. Or write an own custom module.
This module will help you creating snapshots
amazon.aws.ec2_snapshot module
check this documentation.
Thanks
Mukesh
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.
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