-
Notifications
You must be signed in to change notification settings - Fork 166
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
Add support for alternate AWS auth options (#77) #87
Conversation
377fedf
to
3812647
Compare
Thanks for doing the proper fix here, rather than a temp solution. I think we need to validate in the provider that either both are none, or both are provided. A condition with just one is problematic. |
Surprisingly it was the path of least resistance! |
I think we should also have an indicator on the help as to whether the parameter is mandatory or not. In this case they would be optional, and other providers they would be mandatory. This then paves the way for us to add params for selecting a single zone id in aws or cloudflare. |
3812647
to
f9e22aa
Compare
I've put in some basic validation for now. I think that implementing full-blown validation framework is out of the scope of this feature request as other providers will need to be modified. |
f1c88e5
to
1684d05
Compare
1684d05
to
78c99c4
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
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.
Nice work
Resolves #77.
If
--aws-access-key-id
and--aws-access-key-secret
are not provided on the command-line, it allows boto3 to source the credentials itself.This also enhances the argument parsing by allowing providers to decide whether options are required or not. Options are required by default, but can be made non-required by giving them a default value in the function signature: