-
Notifications
You must be signed in to change notification settings - Fork 397
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
[Docs] Updated rds_instance backup_retention_period parameter docs #183
[Docs] Updated rds_instance backup_retention_period parameter docs #183
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple of minor formatting niggles. But the change seems sound based on the AWS documentation.
It's possible that when this module was first created it was required to be >1 (and has to be for DBs that will had a read-replica attached to them)
plugins/modules/rds_instance.py
Outdated
@@ -99,7 +99,8 @@ | |||
type: str | |||
backup_retention_period: | |||
description: | |||
- The number of days for which automated backups are retained (must be greater or equal to 1). | |||
- The number of days for which automated backups are retained (>=1). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- The number of days for which automated backups are retained (>=1). | |
- The number of days for which automated backups are retained. |
plugins/modules/rds_instance.py
Outdated
@@ -99,7 +99,8 @@ | |||
type: str | |||
backup_retention_period: | |||
description: | |||
- The number of days for which automated backups are retained (must be greater or equal to 1). | |||
- The number of days for which automated backups are retained (>=1). | |||
When set to 0, automated backups will be disabled. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When set to 0, automated backups will be disabled. | |
- When set to C(0), automated backups will be disabled. |
Part of me thinks we should also mention the caveat that Can't be set to 0 if the DB instance is a source to read replicas
( https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/rds.html#RDS.Client.create_db_instance )
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We definitely should mention the read replicas case! Why the C(0)
btw?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using C() tweaks the formatting a little and formats it as a 'value'. See also:
https://docs.ansible.com/ansible/latest/dev_guide/developing_modules_documenting.html#linking-within-module-documentation
plugins/modules/rds_instance.py
Outdated
@@ -99,7 +99,8 @@ | |||
type: str | |||
backup_retention_period: | |||
description: | |||
- The number of days for which automated backups are retained (must be greater or equal to 1). | |||
- The number of days for which automated backups are retained (>=1). | |||
When set to 0, automated backups will be disabled. | |||
May be used when creating a new cluster, when restoring from S3, or when modifying a cluster. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May be used when creating a new cluster, when restoring from S3, or when modifying a cluster. | |
- May be used when creating a new cluster, when restoring from S3, or when modifying a cluster. |
Fully aligned 🙂 Will be updating the pull request now! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@jillr is in the middle of preparing the 1.1.0 release. I think it would be good to get this included, but I don't want to merge and cause problems.
…collections#183) This commit was initially merged in https://github.com/ansible-collections/community.aws See: ansible-collections@11a87e0
SUMMARY
Documentation update:
When using rds_instance module, I noticed that when the backup_retention_period parameter is set to 0,
automated backups are disabled.
Previous documentation mentioned that this parameter should be greater than or equal to 1.
Documentation has been updated to reflect this behavior.
ISSUE TYPE
COMPONENT NAME
rds_instance