Skip to content

Instantly share code, notes, and snippets.

@prabodh1194
prabodh1194 / deploy_steps.md
Created March 17, 2024 15:42
deploy s3 & IAM policy & snowflake external volume for creating iceberg tables
  1. Apply the terraform plan.

    1. It'll create AWS resources.
    2. It'll create the snowflake external volume.
  2. Obtain the snowflake user & session credentials.

  3. Re-apply terraform but this time only for the policy resource aws_iam_role.my_iceberg_sf_access_role.

  4. This will update the trust of your IAM role to allow the snowflake user RW access to the S3 bucket.

@prabodh1194
prabodh1194 / mktouch.sh
Created May 14, 2023 07:10
create full directory path in single command
echo >> $HOME/bin/mktouch << EOF
#!/bin/bash
# This script creates a directory and a file in that location.
# Get the path from the command line argument.
path=$1
# Split the path into the directory and file name.
directory=${path%/*}