Skip to content
This repository was archived by the owner on Oct 7, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions roles/aws/aws_ami_asg_cleanup/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
dest: "{{ _ce_provision_build_dir }}/clean_up_ami.zip"
format: zip

- name: Sleep for 100 seconds for IAM before Lambda creation
ansible.builtin.wait_for:
timeout: 100

- name: Create Lambda function
amazon.aws.lambda:
name: "clean_up_ami"
Expand All @@ -41,8 +45,6 @@
handler: '{{ aws_ami_asg_cleanup.handler }}'
tags:
Test: 'This is test tag'
retries: 5
delay: 10
register: _created_iam_lambda_cleanup_function

- name: Create scheduler to invoke Lambda function
Expand Down