Error with wr.catalog.create_database

When I try running the code

wr.catalog.create_database(
name=‘dsoaws_deep_learning’,
exist_ok=True
)

I am getting the following error: An error occurred (AccessDeniedException) when calling the GetDatabase operation: User: arn:aws:sts::761132414953:assumed-role/CFN-SM-IM-Lambda-catalog-SageMakerExecutionRole-pmpX4YjBOA52/SageMaker is not authorized to perform: glue:GetDatabase on resource: arn:aws:glue:us-west-1:761132414953:database/dsoaws_deep_learning because no identity-based policy allows the glue:GetDatabase action

I am new to AWS, please help me out :confused:

1 Like