python/example_code/glue/README.md
Shows how to use the AWS SDK for Python (Boto3) to work with AWS Glue.
<!--custom.overview.start--> <!--custom.overview.end-->AWS Glue is a scalable, serverless data integration service that makes it easy to discover, prepare, and combine data for analytics, machine learning, and application development.
For prerequisites, see the README in the python folder.
Install the packages required by these examples by running the following in a virtual environment:
python -m pip install -r requirements.txt
ListJobs)Code examples that show you how to perform the essential operations within a service.
Code excerpts that show you how to call individual service functions.
This example shows you how to get started using AWS Glue.
python hello/hello_glue.py
This example shows you how to do the following:
This example requires the following scaffold resources that are defined in the
accompanying AWS CloudFormation script setup_scenario_getting_started.yaml.
You can deploy the scaffold resources at a command prompt.
python scaffold.py deploy
This outputs a role and bucket name similar to the following.
Outputs:
RoleName: AWSGlueServiceRole-DocExample
BucketName: doc-example-glue-scenario-docexampleglue6e2f12e5-3zjkuexample
If you prefer, you can deploy and destroy scaffold resources by using the AWS Cloud
Development Kit (AWS CDK). To do this, run cdk deploy or cdk destroy in the
/resources/cdk/glue_role_bucket folder.
Start the example by running the following at a command prompt:
python glue_wrapper.py
After the example is done, destroy scaffold resources at a command prompt.
python scaffold.py destroy
⚠ Running tests might result in charges to your AWS account.
To find instructions for running these tests, see the README
in the python folder.
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0