Before we can start building the data lake, we need to set up the necessary IAM (Identity and Access Management) permissions. AWS Glue requires an IAM role with appropriate policies to access data in Amazon S3 and to manage objects in the Glue Data Catalog.
In this section, we will:
AmazonS3FullAccess and AWSGlueServiceRole managed policies.iam:PassRole permission, then attach it to the Glue role.Why do we need iam:PassRole? When AWS Glue creates resources like crawlers or ETL jobs, it needs to “pass” the IAM role to those services. Without this permission, Glue operations will fail with an AccessDenied error.