Setting up to use Python with AWS Glue - AWS Glue

Setting up to use Python with AWS Glue

Use Python to develop your ETL scripts for Spark jobs. The supported Python versions for ETL jobs depend on the AWS Glue version of the job. For more information on AWS Glue versions, see the Glue version job property.

To set up your system for using Python with AWS Glue

Follow these steps to install Python and to be able to invoke the AWS Glue APIs.

  1. If you don't already have Python installed, download and install it from the Python.org download page.

  2. Install the AWS Command Line Interface (AWS CLI) as documented in the AWS CLI documentation.

    The AWS CLI is not directly necessary for using Python. However, installing and configuring it is a convenient way to set up AWS with your account credentials and verify that they work.

  3. Install the AWS SDK for Python (Boto 3), as documented in the Boto3 Quickstart .

    Boto 3 resource APIs are not yet available for AWS Glue. Currently, only the Boto 3 client APIs can be used.

    For more information about Boto 3, see AWS SDK for Python (Boto3) Getting Started.

You can find Python code examples and utilities for AWS Glue in the AWS Glue samples repository on the GitHub website.