All examples have their own directories, with a main.tf
that references one or more modules.
Examples |
---|
standalone-user-provided-creds |
standalone-vault-provided-creds |
⚠️ Currently, this process is hardcoded.
File 10_run_terraform.yml contains project_path
to correct folder with example, change it if you want to switch to another example.
- name: Terraform
terraform:
project_path: ../../example/standalone-vault-provided-creds
force_init: true
state: present
register: terraform
The resources/data directory contains a data sample that is uploaded via the dev/ansible/04_upload_files.yml playbook.
To create tables and do queries you can use the beeline cli, see the sql-example bellow. However, if you're not familiar with the beeline-cli
, see the verifying setup section.
Create table iris
CREATE EXTERNAL TABLE iris (sepal_length DECIMAL, sepal_width DECIMAL,
petal_length DECIMAL, petal_width DECIMAL, species STRING)
ROW FORMAT DELIMITED
FIELDS TERMINATED BY ','
LINES TERMINATED BY '\n'
LOCATION 's3a://hive/some/prefix/'
TBLPROPERTIES ("skip.header.line.count"="1");
Query table iris
SELECT * FROM default.iris LIMIT 10;