Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit beb806d

Browse filesBrowse files
committed
fix: check AWS credentials and notify about missing environment variables
1 parent 2352410 commit beb806d
Copy full SHA for beb806d

File tree

1 file changed

+8
-0
lines changed
Filter options
  • pkg/retrieval/engine/postgres/initialize/logical

1 file changed

+8
-0
lines changed

‎pkg/retrieval/engine/postgres/initialize/logical/dump_rds.go

Copy file name to clipboardExpand all lines: pkg/retrieval/engine/postgres/initialize/logical/dump_rds.go
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,14 @@ func newRDSDumper(rdsCfg *RDSConfig) (*rdsDumper, error) {
6868
return nil, errors.Wrap(err, "failed to start AWS session")
6969
}
7070

71+
credentials, err := awsSession.Config.Credentials.Get()
72+
if err != nil || !credentials.HasKeys() {
73+
log.Dbg(err)
74+
75+
return nil, errors.New(`failed to check AWS credentials.
76+
Set up valid environment variables AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY`)
77+
}
78+
7179
return &rdsDumper{
7280
rdsCfg: rdsCfg,
7381
iamSvc: iam.New(awsSession, aws.NewConfig()),

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.