lumigo-io / lumigo-CLI

Open source CLI tool to help you develop and manage serverless applications.
https://lumigo.io
Apache License 2.0
331 stars 21 forks source link

Support for credential_source = Ec2InstanceMetadata #92

Open leppikallio opened 4 years ago

leppikallio commented 4 years ago

credential_source = Ec2InstanceMetadata

Could it be possible to have support for that, ie. when running the lumigo-cli in ec2 it could get the credentials from the metadata instead of ~/.aws/credentials?

Alternatively of course support for infamous AWS_ environment variables would do the trick as well.

theburningmonk commented 4 years ago

@leppikallio sorry for the late reply, since we're using the AWS SDK, both these scenarios should be supported already for all the commands that interact with AWS services. The only two that doesn't, are the switch-profile and whoami commands, which rely on what's in ~/.aws/credentials and ~/.aws/config