glue_connection
Manage an AWS Glue connection
Collection: community.aws
Full Name: community.aws.glue_connection
Synopsis
Manage an AWS Glue connection
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| access_key | str | |||
| availability_zone | str | |||
| aws_ca_bundle | path | |||
| aws_config | dict | |||
| catalog_id | str | |||
| connection_properties | dict | |||
| connection_type | str | JDBC | ||
| debug_botocore_endpoint_logs | bool | false | ||
| description | str | |||
| endpoint_url | str | |||
| match_criteria | list | |||
| name | str | yes | ||
| profile | str | |||
| region | str | |||
| secret_key | str | |||
| security_groups | list | |||
| session_token | str | |||
| state | str | yes | ||
| subnet_id | str | |||
| validate_certs | bool | true |
Example
yaml
# Create an AWS Glue connection
- name: Manage an AWS Glue connection
community.aws.glue_connection:
name: my-glue-connection
connection_properties:
JDBC_CONNECTION_URL: jdbc:mysql://mydb:3306/databasename
USERNAME: my-username
PASSWORD: my-password
state: present
# Create an AWS Glue network connection
- name: Manage an AWS Glue connection
community.aws.glue_connection:
name: my-glue-network-connection
availability_zone: us-east-1a
connection_properties:
JDBC_ENFORCE_SSL: "false"
connection_type: NETWORK
description: Test connection
security_groups:
- sg-glue
subnet_id: subnet-123abc
state: present
# Delete an AWS Glue connection
- name: Manage an AWS Glue connection
community.aws.glue_connection:
name: my-glue-connection
state: absent