Class SdkCredentialsProviders
java.lang.Object
dev.hardwood.aws.auth.SdkCredentialsProviders
Bridges the AWS SDK credential chain to Hardwood's types.
This class requires software.amazon.awssdk:auth on the classpath.
Use the hardwood-aws-auth module dependency to pull it in.
-
Method Summary
Modifier and TypeMethodDescriptionstatic S3CredentialsProviderReturns a provider backed by the AWS SDK's default credential chain, which resolves environment variables, profile files and container and instance metadata.static S3CredentialsProviderfromProfile(String profileName) Returns a provider for a specific named profile from~/.aws/credentials.
-
Method Details
-
defaultChain
Returns a provider backed by the AWS SDK's default credential chain, which resolves environment variables, profile files and container and instance metadata. SSO and web-identity profiles additionally need the AWS SDK'ssso,ssooidcandstsmodules on the classpath. -
fromProfile
Returns a provider for a specific named profile from~/.aws/credentials.- Parameters:
profileName- the profile name
-