-
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
Provide full and filtered RDS Aurora details in ec2 inventory #16203
Conversation
@ryansb unrelated test failing? |
@ryansb @nitzmahone all tests passing on resubmit of #15609 against fresh devel. Please consider for inclusion before tower updates the base files again 👍 |
LGTM, but I have limited experience with RDS, so cc @defionscode @ryansb for a look from people with hopefully more RDS experience... |
This needs to do a check for boto3, and set a var like |
@defionscode do you have a 'best practice' example of this to link to? |
@aioue Yep, you'd do something like:
|
Updated as per @ryansb comments.
@ryansb updated as per your comment. |
Great - works for me, but the way you connect to AWS doesn't work with the boto-specified profile parameter in the .ini file. To make profiles work, change the client to Once that's fixed, it'll be set to roll |
if not HAS_BOTO3: | ||
module.fail_json(message="This module requires boto3 be installed - please install boto3 and try again") | ||
|
||
client = boto3.client('rds', region_name=region) |
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.
Please change this to client = self.connect_to_aws(rds, region)
@ryansb done. |
@ryansb need some shipits if you're happy 👍 |
Hi, I haven't forgotten about this PR, I noticed that there isn't a connection creator for boto3 available in the inventory ec2.py. I'm working on a change that'll add one, and once that's in this will be mergeable. Right now, you don't need to do anything and this will still be on schedule for 2.2. |
@aioue, @defionscode, and @nitzmahone please see my rebase of this PR, with a |
The version w/ boto3 checks has been merged (see #16606 ) |
ISSUE TYPE
ANSIBLE VERSION
SUMMARY
Add db_clusters to the ec2 inventory. Show tags. Only show clusters matching tags in the .ini.
Use boto3 to get the clusters.