-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
Use the new AWSClient.accountid when generating ARNs #6503
Conversation
…trieve the account id when generating ARNs
Two notes I have in my mind currently:
I will dive deeper into the code later on and do an actual review, I just wanted to share these thoughts here. |
@bigkraig I have just checked the API reference of RDS and ElastiCache and I can confirm (unfortunately) that there's no way to get the ARNs from those APIs - i.e. I must admit @stack72's original intention was totally reasonable. That said I will submit a support ticket to AWS and let them pass the feedback down to RDS & ElastiCache teams. We may be able to get rid of all the logic at some point in the future at least. The only thing that's preventing this PR from merging are missing conditions for cases when there's no account id provided. The helper function(s) for building ARN(s) should be returning error in such case(s) and that error should cause creation/update/deletion of a resource to fail with that error message - e.g. I would consider merging all RDS helper functions into a single one (e.g. Having less functions that generate ARNs would also help when fixing #7309 at some point. Otherwise this is looking good, thank you for taking the time to do such refactoring. 👍 |
This was actually implemented & merged in #7151 (available in the next release) - I am therefore closing this PR. Thanks for the interest and sorry it took me initially so long to get back to you. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
With the merge of #6385 we are now able to leverage the one-time collection of the AWS account id rather than trying to fetch it from multiple places in the code.