Skip to content

Commit

Permalink
chore: access denied for s3 datalake
Browse files Browse the repository at this point in the history
  • Loading branch information
achettyiitr committed Apr 10, 2023
1 parent db9fdc5 commit b14186a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions warehouse/integrations/datalake/datalake.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ var errorsMappings = []model.JobError{
Type: model.PermissionError,
Format: regexp.MustCompile(`AccessDeniedException: Insufficient Lake Formation permission.*: Required Create Database on Catalog`),
},
{
Type: model.PermissionError,
Format: regexp.MustCompile(`AccessDeniedException: User: .* is not authorized to perform: .* on resource: .*`),
},
}

func Init() {
Expand Down
1 change: 1 addition & 0 deletions warehouse/testdata/errors/S3_DATALAKE
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
{"creating_remote_schema_failed":{"attempt":6,"errors":["AccessDeniedException: Insufficient Lake Formation permission(s): Required Create Database on Catalog"]}}
{"fetching_remote_schema_failed":{"errors":["AccessDeniedException: User: *** is not authorized to perform: *** on resource: *** because no identity-based policy allows the *** action"],"attempt":5}}

0 comments on commit b14186a

Please sign in to comment.