glue_crawler
Manage an AWS Glue crawler
Collection: community.aws
Full Name: community.aws.glue_crawler
Synopsis
Manage an AWS Glue crawler
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| access_key | str | |||
| aws_ca_bundle | path | |||
| aws_config | dict | |||
| database_name | str | |||
| debug_botocore_endpoint_logs | bool | false | ||
| description | str | |||
| endpoint_url | str | |||
| name | str | yes | ||
| profile | str | |||
| purge_tags | bool | true | ||
| recrawl_policy | dict | |||
| region | str | |||
| role | str | |||
| schema_change_policy | dict | |||
| secret_key | str | |||
| session_token | str | |||
| state | str | yes | ||
| table_prefix | str | |||
| tags | dict | |||
| targets | dict | |||
| validate_certs | bool | true |
Example
yaml
# Create an AWS Glue crawler
- name: Manage an AWS Glue crawler
community.aws.glue_crawler:
name: my-glue-crawler
database_name: my_database
role: my-iam-role
schema_change_policy:
delete_behavior: DELETE_FROM_DATABASE
update_behavior: UPDATE_IN_DATABASE
recrawl_policy:
recrawl_ehavior: CRAWL_EVERYTHING
targets:
S3Targets:
- Path: "s3://my-bucket/prefix/folder/"
ConnectionName: my-connection
Exclusions:
- "**.json"
- "**.yml"
state: present
# Delete an AWS Glue crawler
- name: Manage an AWS Glue crawler
community.aws.glue_crawler:
name: my-glue-crawler
state: absent