According to the AWS Documentation it is expected that the AWS_CONTAINER_CREDENTIALS_FULL_URI env var contains the get-credentials path for example: http://localhost/get-credentials.
We use aws vault exclusively for our AWS access at highwing.io and it works flawlessly when connecting with the SDK or using short-term credentials in a subshell like aws-vault exec account and the --server works fine when using the cli, using vscode AWS Toolkit, etc.
When using the Ruby SDK, the ECS credential server is not being picked up by default, even though the AWS_CONTAINER_CREDENTIALS_FULL_URI is supported by the Ruby SDK (see the :endpoint option).
The ECS credentials are picked up if we override the existing env var:
I added the get-credentials path to the server address.
This change would prevent a bit of ceremony I need to manage on my side when using the Ruby SDK for localhost development, I'd really appreciate if you would consider the change.
Caution I don't know Go
I ran the tests and had 3 failures before and after the change.
I rake the make task and it failed to build because I don't have a local signing cert (I think).
I'm happy to make any changes to the PR to meet the process of the project, or if its easier, please feel free to take this contribution and run with it. Thanks for such a great tool and I hope this helps adoption!
Fixes #1229
Problem
According to the AWS Documentation it is expected that the
AWS_CONTAINER_CREDENTIALS_FULL_URI
env var contains theget-credentials
path for example:http://localhost/get-credentials
.We use aws vault exclusively for our AWS access at highwing.io and it works flawlessly when connecting with the SDK or using short-term credentials in a subshell like
aws-vault exec account
and the--server
works fine when using the cli, using vscode AWS Toolkit, etc.When using the Ruby SDK, the ECS credential server is not being picked up by default, even though the
AWS_CONTAINER_CREDENTIALS_FULL_URI
is supported by the Ruby SDK (see the:endpoint
option).The ECS credentials are picked up if we override the existing env var:
and the
get-credentials
route does not seem to break the cli:Suggested Change
I added the
get-credentials
path to the server address.This change would prevent a bit of ceremony I need to manage on my side when using the Ruby SDK for localhost development, I'd really appreciate if you would consider the change.
Caution I don't know Go
I ran the tests and had 3 failures before and after the change.
I rake the make task and it failed to build because I don't have a local signing cert (I think).
I'm happy to make any changes to the PR to meet the process of the project, or if its easier, please feel free to take this contribution and run with it. Thanks for such a great tool and I hope this helps adoption!