Skip to content
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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

jsedlace
Copy link

@jdowning I've seen you have there opened issue for this feature and we need it as well now.

@jsedlace
Copy link
Author

jsedlace commented Sep 6, 2019

@jdowning any comments?

$aws_secret_access_key = undef,
$role_arn = undef,
$source_profile = undef,
Optional[Enum['Environment', 'Ec2InstanceMetadata', 'EcsContainer']] $credential_source = undef,
Copy link
Owner

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?

Copy link
Author

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')
Copy link
Owner

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?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tests added

@jdowning
Copy link
Owner

@jsedlace Looks good. I left a couple of comments. Let me know what you think.

@jsedlace
Copy link
Author

jsedlace commented Apr 4, 2022

@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

@jsedlace jsedlace requested a review from jdowning April 4, 2022 12:53
@jsedlace
Copy link
Author

Hello @jdowning , can you please check if this PR makes sense for you?

@jsedlace
Copy link
Author

Hey @jdowning, is this something you can use in the main branch?

@jsedlace
Copy link
Author

jsedlace commented May 5, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants