diff --git a/aws-assumed-role b/aws-assumed-role index d9cec8731..8fb7320e7 160000 --- a/aws-assumed-role +++ b/aws-assumed-role @@ -1 +1 @@ -Subproject commit d9cec8731a1b588466ea7be2f1d545462ed1352a +Subproject commit 8fb7320e7ca81c43d4054777c043712bb009c4bb diff --git a/rootfs/etc/profile.d/use-profile.sh b/rootfs/etc/profile.d/use-profile.sh index 5aea72e5a..9049bec43 100644 --- a/rootfs/etc/profile.d/use-profile.sh +++ b/rootfs/etc/profile.d/use-profile.sh @@ -1,3 +1,3 @@ -if [ -n "${AWS_PROFILE}" ]; then +if [ -n "${AWS_PROFILE}" ] && [ -f "${AWS_CONFIG_FILE}" ] && [ -f "${AWS_SHARED_CREDENTIALS_FILE}" ]; then use-profile fi