From 2933295f081f9e9c0b2d8bd41087849ac5a13f61 Mon Sep 17 00:00:00 2001 From: Stanislav Sandalnikov Date: Wed, 2 Oct 2019 17:07:48 +0300 Subject: [PATCH] Remove fallback to default profile --- src/main/kotlin/sndl/parnas/backend/impl/SSM.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/sndl/parnas/backend/impl/SSM.kt b/src/main/kotlin/sndl/parnas/backend/impl/SSM.kt index e4ecf97..d90bb4d 100644 --- a/src/main/kotlin/sndl/parnas/backend/impl/SSM.kt +++ b/src/main/kotlin/sndl/parnas/backend/impl/SSM.kt @@ -27,7 +27,7 @@ class SSM(name: String, ssmClient: AWSSimpleSystemsManagement, .withRegion(region ?: DefaultAwsRegionProviderChain().region) .withCredentials(AWSCredentialsProviderChain( EnvironmentVariableCredentialsProvider(), - profileName?.let { ProfileCredentialsProvider(it) } ?: ProfileCredentialsProvider() + profileName?.let { ProfileCredentialsProvider(it) } )) .build(), prefix = prefix,