nifi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Gresock <jgres...@gmail.com>
Subject Re: AWS processor credentials question
Date Thu, 13 Apr 2017 10:33:19 GMT
Actually it's a little more complicated than the code I suggested, since
DefaultAWSCredentialsProviderChain.getInstance() is an
AWSCredentialsProvider, not an AWSCredentials object.  But the idea would
be similar.

On Thu, Apr 13, 2017 at 10:21 AM, Joe Gresock <jgresock@gmail.com> wrote:

> AWS-related devs (I'm looking at James Wing and Adam Lamar),
>
> I just added [1] to propose allowing AWS processors to specify whether to
> use anonymous credentials or to use the default AWS client credentials
> provider chain.  The driver for this is that we would like to use EC2
> instance profiles with the NiFi AWS processors, but this is not currently
> possible because NiFi passes in AnonymousAWSCredentials to the AWS client
> constructor if no credentials are explicitly configured in the processor.
> If we use the DefaultAWSCredentialsProviderChain.getInstance(), I think
> it would find our EC2 instance profile.
>
> My question to you is how you'd like to see this implemented.  Shall we
> add a property to AbstractAWSProcessor called "Allow Anonymous
> Credentials"?  Then in AbstractAWSProcessor.getCredentials(ProcessContext
> context), the return statement could be:
>
> return allowAnonymousCredentials
>      ? new AnonymousAWSCredentials
>      : DefaultAWSCredentialsProviderChain.getInstance();
>
> I thought I'd ask here first, because I see many of the AWS methods marked
> Deprecated, and I didn't want to start adding code if it was going to go
> away soon.
>
> [1] https://issues.apache.org/jira/browse/NIFI-3703
>
> Thanks,
> Joe
>
> --
> I know what it is to be in need, and I know what it is to have plenty.  I
> have learned the secret of being content in any and every situation,
> whether well fed or hungry, whether living in plenty or in want.  I can
> do all this through him who gives me strength.    *-Philippians 4:12-13*
>



-- 
I know what it is to be in need, and I know what it is to have plenty.  I
have learned the secret of being content in any and every situation,
whether well fed or hungry, whether living in plenty or in want.  I can do
all this through him who gives me strength.    *-Philippians 4:12-13*

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message