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

rds_cluster: Add support for more states (stopped, started, restarted) #1616

Closed
1 task done
ohmer opened this issue Jun 20, 2023 · 2 comments · Fixed by #1647
Closed
1 task done

rds_cluster: Add support for more states (stopped, started, restarted) #1616

ohmer opened this issue Jun 20, 2023 · 2 comments · Fixed by #1647
Labels
feature This issue/PR relates to a feature request has_pr module module waiting_on_contributor Needs help. Feel free to engage to get things unblocked

Comments

@ohmer
Copy link

ohmer commented Jun 20, 2023

Summary

I am trying to implement a playbook to stop and start an application environment to save money.
The stack includes RDS Aurora clusters and the AWS collection only supports present and absent states.

AWS added support to interrupt RDS clusters temporarily with some caveats:

It would be great to have support for these additional states for us and the community. Automated solution exists (example: https://aws.amazon.com/blogs/database/save-costs-by-automating-the-start-and-stop-of-amazon-rds-instances-with-aws-lambda-and-amazon-eventbridge/) but I would like to provide the flexibility to our development team to do it on demand, not on schedule.

Issue Type

Feature Idea

Component Name

rds_cluster

Additional Information

- name: Get database cluster information
  amazon.aws.rds_cluster_info:
    cluster_name: "{{ rds_cluster_name }}"
    region: "{{ aws_region }}"
  register: cluster_info

- name: Stop database cluster (AWS restarts it automatically after 7 days)
  amazon.aws.rds_cluster:
    db_cluster_identifier: "{{ cluster_info.clusters[0].db_cluster_identifier }}"
    state: stopped

Code of Conduct

  • I agree to follow the Ansible Code of Conduct
@gravesm gravesm added waiting_on_contributor Needs help. Feel free to engage to get things unblocked feature This issue/PR relates to a feature request and removed needs_triage labels Jun 20, 2023
@ansibullbot
Copy link

Files identified in the description:

If these files are inaccurate, please update the component name section of the description or use the !component bot command.

click here for bot help

@ansibullbot
Copy link

softwarefactory-project-zuul bot pushed a commit that referenced this issue Aug 2, 2023
Added started and stopped states for rds cluster

SUMMARY

Fixes #1616

ISSUE TYPE


Feature Pull Request

COMPONENT NAME

plugins/modules/rds_cluster.py
ADDITIONAL INFORMATION

Reviewed-by: Alina Buzachis
Reviewed-by: Mike Graves <mgraves@redhat.com>
patchback bot pushed a commit that referenced this issue Aug 2, 2023
Added started and stopped states for rds cluster

SUMMARY

Fixes #1616

ISSUE TYPE

Feature Pull Request

COMPONENT NAME

plugins/modules/rds_cluster.py
ADDITIONAL INFORMATION

Reviewed-by: Alina Buzachis
Reviewed-by: Mike Graves <mgraves@redhat.com>
(cherry picked from commit 51eeebb)
jillr pushed a commit that referenced this issue Aug 2, 2023
Added started and stopped states for rds cluster

SUMMARY

Fixes #1616

ISSUE TYPE

Feature Pull Request

COMPONENT NAME

plugins/modules/rds_cluster.py
ADDITIONAL INFORMATION

Reviewed-by: Alina Buzachis
Reviewed-by: Mike Graves <mgraves@redhat.com>
(cherry picked from commit 51eeebb)

Co-authored-by: Taeho Park <113317744+taehopark32@users.noreply.github.com>
krisek pushed a commit to krisek/amazon.aws that referenced this issue Aug 31, 2023
…#1647)

Added started and stopped states for rds cluster

SUMMARY

Fixes ansible-collections#1616

ISSUE TYPE


Feature Pull Request

COMPONENT NAME

plugins/modules/rds_cluster.py
ADDITIONAL INFORMATION

Reviewed-by: Alina Buzachis
Reviewed-by: Mike Graves <mgraves@redhat.com>
abikouo pushed a commit to abikouo/amazon.aws that referenced this issue Oct 24, 2023
…nsible-collections#1674)

aws_ssm - split S3 region/endpoint discovery into dedicated function

Depends-On: ansible-collections#1670
SUMMARY
fixes: ansible-collections#1616
Newer AWS regions don't generate valid presigned URLs unless you explicitly pass the endpoint_url for the region (see also boto/boto3#3015)
ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME
aws_ssm
ADDITIONAL INFORMATION

Reviewed-by: Markus Bergholz <git@osuv.de>
Reviewed-by: Alina Buzachis <None>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This issue/PR relates to a feature request has_pr module module waiting_on_contributor Needs help. Feel free to engage to get things unblocked
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants