-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Treat 'RoleArn' as an optional field when fetching ECS credentials #139
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I took a look about writing a test case for this but with it's current layout it's a bit tricky.
Also we could port this change into AWS.jl
, and internally stop using this package as well.
But for now we can merge this in as it's a safe change.
I cannot suggest the change, but in the |
Yes this should be ported no matter what |
Yes. I typed the wrong word there. This definitely should be included in |
bors r+ |
139: Treat 'RoleArn' as an optional field when fetching ECS credentials r=mattBrzezinski a=cole-p The [ECS developers guide](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-iam-roles.html) implies that the `RoleArn` field should always be returned when querying the container's credential endpoint, however this isn't always the case for Amazon SageMaker jobs. Amazon avoids this in [botocore](https://github.com/boto/botocore/blob/21b06efb39da61fe4101ab9709140dc1e51dc33d/botocore/credentials.py#L1886-L1889) by not accessing the `RoleArn` field. Co-authored-by: Cole Peters <[email protected]>
535: Treat 'RoleArn' as an optional field when fetching ECS credentials r=mattBrzezinski a=cole-p Port the following changes made to AWSCore.jl: JuliaCloud/AWSCore.jl#139 > The [ECS developers guide](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-iam-roles.html) implies that the `RoleArn` field should always be returned when querying the container's credential endpoint, however this isn't always the case for Amazon SageMaker jobs. > >Amazon avoids this in [botocore](https://github.com/boto/botocore/blob/21b06efb39da61fe4101ab9709140dc1e51dc33d/botocore/credentials.py#L1886-L1889) by not accessing the `RoleArn` field. Co-authored-by: Cole Peters <[email protected]>
CI is going to time out because it's still setup for Travis CI and not GHA. Just going to merge this manually... |
Timed out. |
The ECS developers guide implies that the
RoleArn
field should always be returned when querying the container's credential endpoint, however this isn't always the case for Amazon SageMaker jobs.Amazon avoids this in botocore by not accessing the
RoleArn
field.