-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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_instance module and tests #43789
Conversation
Hi @s-hertel, Thank you for the pullrequest, just so you are aware we have a dedicated Working Group for aws. |
abee6c1
to
9d96636
Compare
This is very timely -- thanks for you work ! I'll test it out, review and report back. |
ebc9efe
to
85048a7
Compare
The test
The test
The test
|
85048a7
to
213fd40
Compare
213fd40
to
c0931b2
Compare
hyphens and the first character must be a letter and may not end in a hyphen or contain consecutive hyphens. | ||
aliases: | ||
- cluster_id | ||
db_instance_class: |
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.
I haven't gone through all the options yet but I think it would be great if we could make ec2_instance
and rds_instance
as close as possible in terms of how they are used.
This might translate to changing something here or changing something in ec2_instance
if we feel the implementation here is better.
For example, ec2_instance
has instance_type
for picking the flavor of the instance but here it is db_instance_class
instead.
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.
Thanks so much for reviewing @dmsimard. Let me know if you notice anything else.
My implementation relies on the module options being convertible to the CamelCase boto3 method parameters, so I've been adding aliases rather than modifying the options. Does that work for you? I'll comb through the options for any in common in ec2_instance and add them as aliases. I think modifying the options themselves would make the module harder to maintain (note that this module has 75 options whereas ec2_instance has 35; I want to keep things as simple as possible while being user-friendly).
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.
If AWS can't be bothered to make RDS and EC2 consistent, we shouldn't strive too hard to do so either :)
When making a long-running change, like instance size, if you make the same change successively like this:
The second task with |
The test
|
) | ||
|
||
if not module.boto3_at_least('1.5.0'): | ||
module.fail_json(msg="rds_intance requires boto3 > 1.5.0") |
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.
minor typo
…y not for others and added as a TODO to do properly
bot_status |
Merged! Woohoo! At long last! Well done @s-hertel! |
Thanks @willthames @ryansb @dmsimard for helping with this! I believe all comments have been addressed, so please open bug reports if you find anything new. |
SUMMARY
New boto3 rds_instance module that supports encryption and aurora with integration tests.
ISSUE TYPE
COMPONENT NAME
rds_instance
ANSIBLE VERSION
ADDITIONAL INFORMATION
Fixes #19524
Fixes #11159
Fixes #20395
Fixes #22617
Fixes #24415
Fixes #29831
Fixes #24268
Fixes #28981
Fixes #34067
Fixes #38073
Fixes #30020
Fixes #30094
Fixes #34064
Fixes #23618