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

Remove hardcoded default credential profile #3338

Closed

Conversation

sunds
Copy link

@sunds sunds commented Aug 12, 2022

Summary
Remove hard-coded "default" profile for credentials. The AWS SDK will already fall back to default if no profile is selected. This allows the customer to specify alternate profiles in their environment.

Implementation details
Remove the hard-coded value and update the unit tests

Testing
Unit tests were successfully run on Ubuntu 20.04 with Golang 1.18

New tests cover the changes: Yes. No new lines were added to the codebase.

Description for the changelog
Enhancement - Remove hard-coded "default" profile for credentials to allow their specification from the environment with fallback to "default".

Licensing
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

…fault profile if none is specified. This allows the end user to override the profile in /etc/ecs/ecs.config with the environment variable AWS_PROFILE

Update TestNewRotatingSharedCredentialsProvider to match implementation
@sunds sunds force-pushed the remove-hardcoded-default-credential-profile branch from 4991dff to 54c4eef Compare August 12, 2022 19:16
@fierlion
Copy link
Member

closing in favor of #3365 which was merged

@fierlion fierlion closed this Aug 29, 2022
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.

4 participants