Skip to content

Commit

Permalink
chore: access denied for s3 datalake (#3186)
Browse files Browse the repository at this point in the history
  • Loading branch information
achettyiitr authored and Sidddddarth committed Apr 12, 2023
1 parent cf64da4 commit 18eb46a
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 18eb46a

Please sign in to comment.