aws-athena
Adaptavist/aws-athena/module
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
| Name | Type | Description | Default |
|---|---|---|---|
| database_name | string | Name of the existing database. Required if create_database variable is false | required |
| queries | map(string) | A map of Athena query SQLs where key is the query name and the value is the path | required |
| namespace | string | required | |
| stage | string | required | |
| bucket_name | string | Name of the Athena database bucket. Required if create_database is true | required |
| database_force_destroy | bool | A boolean that indicates all tables should be deleted from the database so that | false |
| enforce_workgroup_configuration | string | Enforce workgroup configuration. Client side configuration will be ignored | false |
| tags | map(string) | {} | |
| create_database | bool | A boolean that indicates if the new database should be created. | true |
| query_template_parameters | map(string) | A map of key value pairs used to customise Athena queries. These are typically e | {} |
| name | string | "athena" | |
| query_output_locations | map(string) | A map of output locations (S3 URLs) for Athena queries. Keys are query names ide | {} |
| query_output_buckets_kms_keys | map(string) | A map of KMS keys used to encrypt data in output S3 buckets for Athena queries. | {} |
database_name — Name of the Athena databasequery_ids — A map of query names and ids