Skip to content

Add option to configure credential_source#64

Open
jsedlace wants to merge 4 commits into
jdowning:masterfrom
wandera:credential_source
Open

Add option to configure credential_source#64
jsedlace wants to merge 4 commits into
jdowning:masterfrom
wandera:credential_source

Conversation

@jsedlace

Copy link
Copy Markdown

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

@jsedlace

jsedlace commented Sep 6, 2019

Copy link
Copy Markdown
Author

@jdowning any comments?

Comment thread manifests/profile.pp
$aws_secret_access_key = undef,
$role_arn = undef,
$source_profile = undef,
Optional[Enum['Environment', 'Ec2InstanceMetadata', 'EcsContainer']] $credential_source = undef,

Copy link
Copy Markdown
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
Copy Markdown
Author

Choose a reason for hiding this comment

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

Comment thread manifests/profile.pp
}

if ($source_profile != undef and $credential_source != undef) {
fail('aws cli profile cannot contain both source_profile and credential_source config option')

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Owner

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

@jsedlace

jsedlace commented Apr 4, 2022

Copy link
Copy Markdown
Author

@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
Copy Markdown
Author

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

@jsedlace

Copy link
Copy Markdown
Author

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

@jsedlace

jsedlace commented May 5, 2022

Copy link
Copy Markdown
Author

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