Skip to content

Get PrestoS3FileSystem to work with the AWS Default Credentials Provider#13858

Merged
arhimondr merged 1 commit intoprestodb:masterfrom
anoopj:anoopj/default-aws-creds
Dec 26, 2019
Merged

Get PrestoS3FileSystem to work with the AWS Default Credentials Provider#13858
arhimondr merged 1 commit intoprestodb:masterfrom
anoopj:anoopj/default-aws-creds

Conversation

@anoopj
Copy link

@anoopj anoopj commented Dec 12, 2019

DefaultAWSCredentialsProviderChain is frequently used by AWS customers
and it provides access from a documented list of sources. This
especially makes it easier to run Presto on non-EC2 hosts where you
don't have the instance profile. (e.g. Macs, during development).

See:
https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/auth/DefaultAWSCredentialsProviderChain.html

Please make sure your submission complies with our Development, Formatting, and Commit Message guidelines.

Fill in the release notes towards the bottom of the PR description.
See Release Notes Guidelines for details.

== RELEASE NOTES ==

General Changes
* Get PrestoS3FileSystem to work with the AWS Default Credentials Provider

Copy link
Contributor

@ajaygeorge ajaygeorge left a comment

Choose a reason for hiding this comment

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

LGTM with a minor comment

Copy link
Contributor

Choose a reason for hiding this comment

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

seems like you could an
assertEquals(getAwsCredentialsProvider(fs), DefaultAWSCredentialsProviderChain.getInstance())
which is better than assertInstanceOf

Copy link
Author

Choose a reason for hiding this comment

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

I recommend keeping this, since this is more descriptive and the DefaultAWSCredentialsProviderChain class is a stronger contract than the instance.

@ajaygeorge
Copy link
Contributor

ajaygeorge commented Dec 17, 2019

@anoopj Integrate PrestoS3FileSystem with AWS Default Credentials Provider reads better as the commit message headline?

@anoopj
Copy link
Author

anoopj commented Dec 17, 2019

@anoopj Integrate PrestoS3FileSystem with AWS Default Credentials Provider reads better as the commit message headline?

@ajaygeorge I will change the commit message headline.

DefaultAWSCredentialsProviderChain is frequently used by AWS customers
and it provides access from a documented list of sources. This
especially makes it easier to run Presto on non-EC2 hosts where you
don't have the instance profile. (e.g. Macs, during development).

See:
https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/auth/DefaultAWSCredentialsProviderChain.html
@anoopj anoopj force-pushed the anoopj/default-aws-creds branch from 7265aad to 4c3a147 Compare December 17, 2019 16:53
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.

3 participants