aws-athena

Adaptavist/aws-athena/module

Terraform Module HCL MODULE
Install
module "aws-athena" {
source = "Adaptavist/aws-athena/module"
version = "1.3.3"
}
plain text: /constructs/tfmod-adaptavist-aws-athena-module/install.txt
⭐ Source on GitHub 📦 Registry page
README

AWS Athena Module This module provides an easy way to set up Athena queries. The module can set up Athena database and table from an input S3 bucket and create-table SQL script. If database and tables are already provisioned (for instance by AWS Glue), the module can be used to define a set of Athena queries. The module is not responsible for the creation / lifecycle of S3 buckets - it is recommended that these are created using the separate module responsible for creating encrypted private S3 buckets. Variables | Name | Type | Default | Required | Description | ------------------------------| ------- | ------- | -------- | -------------------------------------------------------------------------- | create_database | string | true | | A boolean that indicates if a new Athena database shoul

Inputs (13)
NameTypeDescriptionDefault
database_namestringName of the existing database. Required if create_database variable is false required
queriesmap(string)A map of Athena query SQLs where key is the query name and the value is the path required
namespacestring required
stagestring required
bucket_namestringName of the Athena database bucket. Required if create_database is true required
database_force_destroyboolA boolean that indicates all tables should be deleted from the database so that false
enforce_workgroup_configurationstringEnforce workgroup configuration. Client side configuration will be ignoredfalse
tagsmap(string){}
create_databaseboolA boolean that indicates if the new database should be created.true
query_template_parametersmap(string)A map of key value pairs used to customise Athena queries. These are typically e{}
namestring"athena"
query_output_locationsmap(string)A map of output locations (S3 URLs) for Athena queries. Keys are query names ide{}
query_output_buckets_kms_keysmap(string)A map of KMS keys used to encrypt data in output S3 buckets for Athena queries. {}
Outputs (2)
database_name — Name of the Athena database
query_ids — A map of query names and ids
Resources (3)
aws_athena_databaseaws_athena_named_queryaws_athena_workgroup
Details
FrameworkTerraform Module
LanguageHCL
Version1.3.3
Cloud MODULE
★ Stars3
Forks7
Total downloads11.1k
Inputs13
Outputs2
Resources3
NamespaceAdaptavist
Updated