From 7187cd035d98ad37a35881933b20ae1818990abd Mon Sep 17 00:00:00 2001 From: Cole Peters Date: Thu, 10 Mar 2022 14:14:10 -0600 Subject: [PATCH 1/2] Treat 'RoleArn' as an optional field when fetching ECS credentials --- src/AWSCredentials.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/AWSCredentials.jl b/src/AWSCredentials.jl index d21346eef4..01b0ba366e 100644 --- a/src/AWSCredentials.jl +++ b/src/AWSCredentials.jl @@ -339,7 +339,8 @@ function ecs_instance_credentials() new_creds["AccessKeyId"], new_creds["SecretAccessKey"], new_creds["Token"], - new_creds["RoleArn"]; + # The RoleArn field may not be present for Amazon SageMaker jobs + get(new_creds, "RoleArn", ""); expiry=expiry, renew=ecs_instance_credentials, ) From e16bc35afab7e5443206fd3046fe33c594ad24f8 Mon Sep 17 00:00:00 2001 From: Cole Peters Date: Thu, 10 Mar 2022 14:15:45 -0600 Subject: [PATCH 2/2] Bump version --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index d059d8a1fb..b42a527fa6 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "AWS" uuid = "fbe9abb3-538b-5e4e-ba9e-bc94f4f92ebc" license = "MIT" -version = "1.74.0" +version = "1.74.1" [deps] Base64 = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"