Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PR #779/dc379597 backport][stable-2] Create ec2_asg_scheduled_action module #820

Conversation

patchback[bot]
Copy link

@patchback patchback bot commented Dec 2, 2021

This is a backport of PR #779 as merged into main (dc37959).

SUMMARY

This creates a new module ec2_asg_scheduled_action to create scheduled actions on Auto Scaling Groups.

It was based on and modified from: https://github.com/mmochan/ansible-aws-ec2-asg-scheduled-actions/blob/master/library/ec2_asg_scheduled_action.py

Requires: mattclay/aws-terminator#179

ISSUE TYPE
  • New Module Pull Request
COMPONENT NAME

ec2_asg_scheduled_action

ADDITIONAL INFORMATION

Actions can be created like so:

- name: Create a minimal scheduled action for autoscaling group
  community.aws.ec2_asg_scheduled_action:
    autoscaling_group_name: test_asg
    scheduled_action_name: test_scheduled_action
    start_time: 2021 October 25 08:00 UTC
    recurrence: 40 22 * * 1-5
    desired_capacity: 10
    state: present

Actions can be deleted like so:

- name: Delete scheduled action
  community.aws.ec2_asg_scheduled_action:
    autoscaling_group_name: test_asg
    scheduled_action_name: test_scheduled_action
    state: absent

Create ec2_asg_scheduled_action module

SUMMARY
This creates a new module ec2_asg_scheduled_action to create scheduled actions on Auto Scaling Groups.
It was based on and modified from: https://github.com/mmochan/ansible-aws-ec2-asg-scheduled-actions/blob/master/library/ec2_asg_scheduled_action.py
Requires: mattclay/aws-terminator#179
ISSUE TYPE

New Module Pull Request

COMPONENT NAME
ec2_asg_scheduled_action
ADDITIONAL INFORMATION
Actions can be created like so:
- name: Create a minimal scheduled action for autoscaling group
  community.aws.ec2_asg_scheduled_action:
    autoscaling_group_name: test_asg
    scheduled_action_name: test_scheduled_action
    start_time: 2021 October 25 08:00 UTC
    recurrence: 40 22 * * 1-5
    desired_capacity: 10
    state: present
Actions can be deleted like so:
- name: Delete scheduled action
  community.aws.ec2_asg_scheduled_action:
    autoscaling_group_name: test_asg
    scheduled_action_name: test_scheduled_action
    state: absent

Reviewed-by: Markus Bergholz <[email protected]>
Reviewed-by: Mark Woolley <[email protected]>
Reviewed-by: Jill R <None>
Reviewed-by: Mark Chappell <None>
Reviewed-by: Alina Buzachis <None>
Reviewed-by: None <None>
(cherry picked from commit dc37959)
@markuman markuman added the gate label Dec 17, 2021
Copy link
Contributor

@ansible-zuul ansible-zuul bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@ansible-zuul ansible-zuul bot merged commit f89696e into stable-2 Dec 17, 2021
@tremble tremble deleted the patchback/backports/stable-2/dc37959725a60b3986530307239a11f5584d8f25/pr-779 branch July 7, 2022 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants