Sharing data with multiple AWS accounts using S3 bucket policies and Glue catalog policies
In this section, you will learn how to share your data with multiple AWS accounts using an S3 bucket policy and a Glue catalog policy.
When your use case is simple, and you want to share your data with a small number of accounts, it is possible to grant data access in S3 bucket policies (https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucket-policies.html) and metadata access in Glue catalog resource policies (https://docs.aws.amazon.com/glue/latest/dg/glue-resource-policies.html). You will set these up in the following sections.
Scenario 1 – sharing data from one account with another using S3 bucket policies and Glue catalog policies
In the following scenario, there are two accounts – the producer account and the consumer account. Here, the producer account wants to share its table with the consumer account, and the consumer account wants to run SELECT
queries against...