Skip to content

Latest commit

 

History

History

athena-data-catalog

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

athena-data-catalog

This module creates following resources.

  • aws_athena_data_catalog

Requirements

Name Version
terraform >= 1.5
aws >= 4.65

Providers

Name Version
aws 5.19.0

Modules

Name Source Version
resource_group tedilabs/misc/aws//modules/resource-group ~> 0.10.0

Resources

Name Type
aws_athena_data_catalog.this resource

Inputs

Name Description Type Default Required
name (Required) The name of the data catalog. The catalog name must be unique for the AWS account and can use a maximum of 128 alphanumeric, underscore, at sign, or hyphen characters. string n/a yes
type (Required) A type of the data catalog. Valid values are LAMBDA, GLUE, HIVE.
- LAMBDA for a federated catalog.
- GLUE for an AWS Glue Data Catalog.
- HIVE for an external hive metastore.
string n/a yes
description (Optional) The description of the data catalog. string "Managed by Terraform." no
module_tags_enabled (Optional) Whether to create AWS Resource Tags for the module informations. bool true no
parameters (Optional) A set of key value pairs that specifies the Lambda function or functions to use for creating the data catalog. The mapping used depends on the catalog type.

LAMBDA
Use one of the following sets of required parameters, but not both.
- If you have one Lambda function that processes metadata and another for reading the actual data.
(Required) metadata-function - The ARN of Lambda function to process metadata.
(Required) record-function - The ARN of Lambda function to read the actual data.
- If you have a composite Lambda function that processes both metadata and data.
(Required) function - The ARN of a composite Lambda function to process both metadata and data.

GLUE
(Required) catalog_id - The account ID of the AWS account to which the Glue Data Catalog belongs.

HIVE
(Required) metadata-function - The ARN of Lambda function to process metadata.
(Optional) sdk-version - Defaults to the currently supported version.
map(string) {} no
resource_group_description (Optional) The description of Resource Group. string "Managed by Terraform." no
resource_group_enabled (Optional) Whether to create Resource Group to find and group AWS resources which are created by this module. bool true no
resource_group_name (Optional) The name of Resource Group. A Resource Group name can have a maximum of 127 characters, including letters, numbers, hyphens, dots, and underscores. The name cannot start with AWS or aws. string "" no
tags (Optional) A map of tags to add to all resources. map(string) {} no

Outputs

Name Description
arn The Amazon Resource Name (ARN) of the data catalog.
description The description of the data catalog.
id The ID of the data catalog.
name The name of the data catalog.
parameters A set of key value pairs that specifies the Lambda function or functions to use for creating the data catalog.
type The type of the data catalog.