Komiser Local: Missing config.toml step in AWS #75
Description
I followed the documentation to connect my AWS account as per the below:
https://docs.komiser.io/docs/cloud-providers/aws#local-komiser-cli
And I was confused that:
- Do I need to add an AWS section in my config.toml
- In what format should I?
- The docs said in a different section on the same page in the form of:
[[aws]]
name="sandbox"
source="CREDENTIALS_FILE"
path=./path/to/credentials/file
profile="default
I tried the same and kept on getting the following error:
WARN[2023-04-15T12:09:19+05:30] [shubham-test][AWS] operation error Lambda: ListFunctions, failed to sign request: failed to retrieve credentials: failed to refresh cached credentials, no EC2 IMDS role found, operation error ec2imds: GetMetadata, request canceled, context deadline exceeded
Which on further debugging and hit and trials, I managed to get it working by setting the following in my config.toml:
[[aws]]
name="shubham-test"
source="CREDENTIALS_FILE"
Since it's in the default path ie the path suggested in the docs, we do not need to pass the path parameter (this is also mentioned in the docs in the configuring credentials section: https://docs.komiser.io/docs/cloud-providers/aws#configuring-credentials).
My suggestion is that most users won't read the documentation so thoroughly hence adding a step of config.toml
won't harm in any way and will improve the UX