mapbox / cloudfriend

Helper functions for assembling CloudFormation templates in JavaScript
ISC License
69 stars 9 forks source link

validate-template doesn't work correctly with aws profile/process credentials #116

Closed drboyer closed 3 years ago

drboyer commented 4 years ago

At least on my system, attempting to use an AWS profile that pulls credentials from a credential_process instead of having AWS access keys set in the environment causes the validate-template CLI tool to misbehave. When I run the command in such an environment, the program will hang for some time before eventually erroring out with the following error:

✘ invalid: Missing credentials in config

Expected behavior

This CLI tool can properly fetch credentials from AWS profiles, including those that use process credentials.

rclark commented 4 years ago

Likely this is because the version of the aws-sdk-js is old in cloudfriend. ProcessCredentials were added somewhat recently.

drboyer commented 3 years ago

Resolved in v5.0.0 by #121.