def create_storage_integration()

in customer-stack/create-resources.py [0:0]


def create_storage_integration(snowflake_cursor, storage_integration_name, auto_ml_role_arn, s3_bucket_name):
    logger.info("Creating Storage Integration [storage_integration_name=%s, auto_ml_role_arn=%s, s3_bucket_name=%s]",
                storage_integration_name, auto_ml_role_arn, s3_bucket_name)

    storage_integration_str = ("create or replace storage integration \"%s\" \
    type = external_stage \
    storage_provider = s3 \
    enabled = true \
    storage_aws_role_arn = '%s' \
    storage_allowed_locations = ('s3://%s')") % (storage_integration_name, auto_ml_role_arn, s3_bucket_name)

    snowflake_cursor.execute(storage_integration_str)