question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`~/.aws/config` not respected, config read only from `~/aws/credentials`

See original GitHub issue

After running aws configure and setting your region to us-east-2, it will be put in ~/.aws/config and will be returned by aws configure get region. However, when attempting to run dotnet.exe lambda package-ci --output-template compiled.template from a folder whose aws-lambda-tools-defaults.json does not have a region set, you will still get the error message Missing required parameter: --region.

This can be worked around by adding region=us-east-2 to the bottom of your ~/.aws/credentials file.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
normjcommented, Oct 1, 2020

Looks like this was a bug in the SDK that was fixed back in fall 2019 but the version of the SDK used by Amazon.Lambda.Tools hasn’t been updated in quite awhile. I’m working on updating Amazon.Lambda.Tools to the latest version of the SDK which should fix the problem.

0reactions
hunanniucommented, Oct 19, 2020

This issue should have been addressed

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuration and credential file settings - AWS Documentation
The following examples show a credentials and config file with two profiles, region, and output specified. The first [default] is used when you ......
Read more >
AWS_PROFILE not respected with aws credentials as ...
The Issue When you have an aws config file setup with a profile, and the credentials are stored as environment variables, sops will...
Read more >
Missing credentials in config, if using AWS_CONFIG_FILE, ...
When using credentials in plain text everything works good but when I am trying to use environment variables it's not working. Error message....
Read more >
Configuring the AWS SDK for Go V2
When you initialize an aws.Config instance using config.LoadDefaultConfig , the SDK uses its default credential chain to find AWS credentials.
Read more >
MATLAB Answers
when I store my AWS credentials in the file .aws/credentials. However, when I try to use .aws/config instead, I get the error message....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found