- Newest
- Most votes
- Most comments
The issue you're experiencing with the empty Glue database dropdown when creating a dashboard for Security Lake in OpenSearch Service is likely related to insufficient permissions or incomplete cross-account setup.
Since your Security Lake is in another account, there are several potential causes:
-
IAM Permissions: The IAM role used by OpenSearch Service might be missing the necessary permissions to access the Glue databases in the Security Lake account. The role needs permissions like
glue:GetDatabase,glue:GetDatabases,glue:GetTable,glue:GetTables, and other Glue-related actions. -
Lake Formation Resource Link: When accessing Security Lake data from an account other than the Security Lake delegated admin account, you need to create a resource link to the shared Lake Formation database. This resource link points your account to the shared database. If this resource link is missing or improperly configured, the Glue database won't appear in the dropdown.
-
Lake Formation Permissions: Even though you can see the databases in the Glue console, OpenSearch Service might be using a different role that doesn't have the proper Lake Formation permissions.
To resolve this issue:
-
Ensure the IAM role used by OpenSearch has the necessary Glue and Lake Formation permissions, including
glue:GetDatabase,glue:GetDatabases, andlakeformation:GetDataAccess. -
Verify that you've created a resource link to the shared Lake Formation database from the Security Lake delegated admin account to your account.
-
Check that the Lake Formation permissions are properly set up for the role that OpenSearch Service is using.
-
Consider creating a unique database with the
CreateDatabaseAPI to store resource link tables, as recommended for Security Lake subscribers.
If you've confirmed all these settings are correct, you might need to check if the cross-account data sharing settings in Lake Formation are updated to version 3, which is required for proper query access to Security Lake data across accounts.
Sources
Troubleshooting AWS Glue Data Quality errors - AWS Glue
Creating an Amazon Security Lake data source integration in OpenSearch Service - Amazon OpenSearch Service
Introducing Amazon OpenSearch Service and Amazon Security Lake integration to simplify security analytics | AWS News Blog
Security OU - Security Tooling account - AWS Prescriptive Guidance
