Preparation Steps

Preparation Steps

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:

  1. Create an IAM Role for AWS Glue with the AmazonS3FullAccess and AWSGlueServiceRole managed policies.
  2. Create a custom IAM Policy that grants the 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.

Contents

  1. Create IAM Role
  2. Create Policy