View a markdown version of this page

Tutorial: configure cross-account access for Redshift federated catalog table - The lakehouse architecture of Amazon SageMaker

Tutorial: configure cross-account access for Redshift federated catalog table

This tutorial provides step-by-step instructions on how to configure cross account sharing of Redshift federated catalog tables using Lake Formation permissions. For more information, see Sharing a data lake using Lake Formation fine-grained access control.

Prerequisites

Before proceeding, ensure you have the following prerequisites:

Required IAM policies for Glue-execution-role

The Glue-execution-role in account B requires the following AWS managed policies:

  • AWSGlueServiceRole

  • AmazonRedshiftDataFullAccess

Additionally, create an inline policy with the following permissions:

JSON
{ "Version":"2012-10-17", "Statement": [ { "Sid": "LFandRSserverlessAccess", "Effect": "Allow", "Action": [ "lakeformation:GetDataAccess", "redshift-serverless:GetCredentials" ], "Resource": "*" }, { "Effect": "Allow", "Action": "iam:PassRole", "Resource": "*", "Condition": { "StringEquals": { "iam:PassedToService": "glue.amazonaws.com" } } } ] }

Add the following trust policy to Glue-execution-role:

JSON
{ "Version":"2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "Service": [ "glue.amazonaws.com" ] }, "Action": "sts:AssumeRole" } ] }