-
Notifications
You must be signed in to change notification settings - Fork 55
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 option to configure credential_source #64
base: master
Are you sure you want to change the base?
Conversation
a3c22a4
to
4d8f3bd
Compare
@jdowning any comments? |
$aws_secret_access_key = undef, | ||
$role_arn = undef, | ||
$source_profile = undef, | ||
Optional[Enum['Environment', 'Ec2InstanceMetadata', 'EcsContainer']] $credential_source = undef, |
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 am not familiar with this syntax. Could you link me to the docs?
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.
@@ -108,6 +114,10 @@ | |||
$group_real = $group | |||
} | |||
|
|||
if ($source_profile != undef and $credential_source != undef) { | |||
fail('aws cli profile cannot contain both source_profile and credential_source config option') |
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.
It might be good to have a spec to test this. Do you think you could add one?
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.
tests added
@jsedlace Looks good. I left a couple of comments. Let me know what you think. |
@jdowning it took more than 2 years, but I want to finish what was started - can you please check now? I've added tests and links to puppet syntax |
Hello @jdowning , can you please check if this PR makes sense for you? |
Hey @jdowning, is this something you can use in the main branch? |
Howdy @jdowning , can this code be of any use in the project? We use it from our branch for quite a while and it serves well. |
@jdowning I've seen you have there opened issue for this feature and we need it as well now.