glue_job
Manage an AWS Glue job
Collection: community.aws
Full Name: community.aws.glue_job
Synopsis
Manage an AWS Glue job
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| access_key | str | |||
| allocated_capacity | int | |||
| aws_ca_bundle | path | |||
| aws_config | dict | |||
| command_name | str | glueetl | ||
| command_python_version | str | |||
| command_script_location | str | |||
| connections | list | |||
| debug_botocore_endpoint_logs | bool | false | ||
| default_arguments | dict | |||
| description | str | |||
| endpoint_url | str | |||
| glue_version | str | |||
| max_concurrent_runs | int | |||
| max_retries | int | |||
| name | str | yes | ||
| number_of_workers | int | |||
| profile | str | |||
| purge_tags | bool | true | ||
| region | str | |||
| role | str | |||
| secret_key | str | |||
| session_token | str | |||
| state | str | yes | ||
| tags | dict | |||
| timeout | int | |||
| validate_certs | bool | true | ||
| worker_type | str |
Example
yaml
# Create an AWS Glue job
- name: Manage an AWS Glue job
community.aws.glue_job:
command_script_location: "s3://s3bucket/script.py"
default_arguments:
"--extra-py-files": s3://s3bucket/script-package.zip
"--TempDir": "s3://s3bucket/temp/"
name: my-glue-job
role: my-iam-role
state: present
# Delete an AWS Glue job
- name: Manage an AWS Glue job
community.aws.glue_job:
name: my-glue-job
state: absent