Skip to content

fix: Improve AWS credentials error message and local profile docs#4708

Merged
kodiakhq[bot] merged 4 commits intocloudquery:mainfrom
erezrokah:fix/aws_credentials_error
Nov 16, 2022
Merged

fix: Improve AWS credentials error message and local profile docs#4708
kodiakhq[bot] merged 4 commits intocloudquery:mainfrom
erezrokah:fix/aws_credentials_error

Conversation

@erezrokah
Copy link
Copy Markdown
Member

Summary

Fixes #4656

if _, err := awsCfg.Credentials.Retrieve(ctx); err != nil {
logger.Error().Err(err).Msg("error retrieving credentials")
return awsCfg, fmt.Errorf("error retrieving credentials: %w", err)
return awsCfg, fmt.Errorf("error retrieving AWS credentials. Please verify your credentials and try again")
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The full AWS error is still in the logs

Co-authored-by: Herman Schaaf <hermanschaaf@gmail.com>
Copy link
Copy Markdown
Contributor

@hermanschaaf hermanschaaf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍 Just one more suggestion, but not a blocker

Co-authored-by: Herman Schaaf <hermanschaaf@gmail.com>
@erezrokah erezrokah added the automerge Automatically merge once required checks pass label Nov 16, 2022
@kodiakhq kodiakhq bot merged commit 2a159b8 into cloudquery:main Nov 16, 2022
kodiakhq bot pushed a commit that referenced this pull request Nov 16, 2022
🤖 I have created a release *beep* *boop*
---


## [7.0.1](plugins-source-aws-v7.0.0...plugins-source-aws-v7.0.1) (2022-11-16)


### Bug Fixes

* Improve AWS credentials error message and local profile docs ([#4708](#4708)) ([2a159b8](2a159b8))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge Automatically merge once required checks pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(aws): Improve error message when wrong local_profile is used

3 participants