Skip to content

Instantly share code, notes, and snippets.

View timvw's full-sized avatar

Tim Van Wassenhove timvw

View GitHub Profile
@timvw
timvw / main.tf
Created February 1, 2024 20:37
Build infra for creating iceberg tables in snowflake with the terraform provider
resource "snowflake_unsafe_execute" "volume" {
execute = <<EOT
CREATE OR REPLACE EXTERNAL VOLUME ${var.external_volume_name}
STORAGE_LOCATIONS =
(
(
NAME = '${var.external_volume_bucket_name}'
STORAGE_PROVIDER = 'S3'
STORAGE_BASE_URL = 's3://${var.external_volume_bucket_name}'
STORAGE_AWS_ROLE_ARN = '${var.snowflake_iam_role_arn}'
@VincentSchmid
VincentSchmid / justfile
Last active January 17, 2025 19:21
justfile for terraform configuration
terraform_version := "1.6.6"
current_env := "dev"
var_file_name := "./configuration." + current_env + ".tfvars"
backend_file_name := "backend." + current_env + ".tfvars"
terraform_loglevel := "ERROR"
terraform_code_folder := "terraform"
# runs terraform init & fmt & validate & tflint (add -reconfigure or -upgrade as params)
tf-check *params: