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" 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, )