cloudydeno / deno-aws_api

From-scratch Typescript client for accessing AWS APIs
https://deno.land/x/aws_api
59 stars 3 forks source link

feat(client): Implement ECS credentials provider #34

Closed danopia closed 2 years ago

danopia commented 2 years ago

Fixes #33

This is a new default provider, so it will be attempted at library startup unless a prior provider succeeds or the application provides explicit credentials. (The higher-priority providers in the default chain are EnvironmentCredentials and SharedIniFileCredentials).

I haven't set any sort of timeout for credential fetching yet. The fetch is only attempted if an explicit environment variable / config is given, so I don't expect a timeout to be necessary, but I'll likely add a 5s timeout anyway. Outside of ECS this provider should always fail without causing any I/O due to missing config.

Larisho commented 2 years ago

Verified that is does work now. Thank you very much for getting this done so quickly!

danopia commented 2 years ago

Great, thanks for verifying! I have a couple other changes which I want to include in the next version, so I'm hoping to have it tagged by next week.