could hopefully be made to work for instance profile credentials

Based on a quick glance at the code, the InstanceProfileApi (note: in jclouds-labs-aws) may be useful here:

https://github.com/apache/jclouds-labs-aws/blob/master/iam/src/main/java/org/jclouds/iam/features/InstanceProfileApi.java

Regards

ap

On 2022-01-11 04:47, Andrew Phillips wrote:
Hi Abhinav

Is there a way to not provide the below .credentials and the context pulls via
Instance Profile Credentials.

This sounds like https://github.com/jclouds/legacy-jclouds/issues/1280
(note: in the legacy repo, which is no longer in use) - I'm not sure
if something like that was ever implemented, though.

Here is a code snippet using STS to provide credentials in a different way:

https://stackoverflow.com/questions/23520216/using-aws-s3-via-jclouds-how-to-assume-role

Something like that (i.e. creating an appropriate custom
credentialsSupplier) could hopefully be made to work for instance
profile credentials, too?

Regards

ap

Reply via email to