/sfutils:external-volumefrom sfutils
**[REQUIRED]** Create Snowflake external volumes with cloud storage. Use when: setting up external storage, creating external volume, configuring S3 for Snowflake, azure blob storage, GCS for Snowflake, Iceberg tables, unloading data, cloud storage, COPY INTO unload, external stage storage, data lake storage. Triggers: sfutils-extvolumes, setup-external-volume, external volume, create external volume, s3 snowflake, iceberg storage, data lake storage, COPY INTO location, external stage, unload to S3, replay volumes, replay volume manifest, recreate external volume, replay all manifests, replay all sfutils, export manifest for sharing, setup from shared manifest, replay from shared manifest, setup from manifest URL, replay from URL, use manifest from URL, azure, gcs, blob storage, cloud storage, multiple volumes, list volumes, setup connection, validate manifest, migrate manifest, second external volume.
Ships in sfutils. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Creates cloud storage resources and a Snowflake external volume for storage access. Today only the AWS S3 path is implemented; other backends are roadmap-only (see Step 4).
Supported now: AWS S3
Roadmap (not enabled): Azure Blob Storage, Google Cloud Storage — do not offer as multiple-choice options; mention in prose only until workflows ship.
Use cases: Iceberg tables, data lake access, COPY INTO unload, external stages.
⚠️ CONNECTION USAGE: This skill reads the Snowflake connection from [snowflake].connection in manifest.toml. The CLI passes -c <connection> to all snow sql calls automatically — no manual env export needed. Admin_role defaults to [snowflake].admin_role or ACCOUNTADMIN.
📌 CONNECTION NOTE: The CLI reads connection from manifest.toml and auto-injects -c <connection> to all snow sql calls. No .env sourcing needed. Always run vol setup-connection to set the connection in manifest.toml before any other command.
📋 NO PREREQUISITE: This skill does NOT require sfutils-pat. It operates independently.
📋 MANIFEST AS SOURCE OF TRUTH
📍 Location:
.sfutils/manifest.toml(ALWAYS this exact path — TOML format, NOT the legacy.sfutils/sfutils-manifest.md)⛔ DO NOT hand-edit manifests. Manifests are machine-managed by Cortex Code. Manual edits can corrupt the format and break replay, cleanup, and export flows. Use skill commands to modify resources instead.
🔒 Security: Secured like
.ssh(chmod 700 directory, chmod 600 files)Skill-Scoped Admin Roles:
- Volumes default:
ACCOUNTADMIN(CREATE EXTERNAL VOLUME privilege)- External volumes are account-level objects — no database or schema setup needed
🚫 FORBIDDEN ACTIONS - NEVER DO THESE:
source .env, set -a && source .env && set +a, or load_dotenv() for any vol commandBUCKET, EXTVOLUME_PREFIX, EXTERNAL_VOLUME_NAME, or AWS_REGION from .env to pass to vol commands — all values MUST be explicit CLI flags or derived from manifest.toml--auto-setup, --auto-approve, --quiet, --non-interactive--yes / -y is REQUIRED when executing commands after user has approved the dry-runvol deletevol create without first running vol ... create --dry-run — mandatory, non-negotiable✅ REQUIRED ACTIONS - ALWAYS DO THESE:
--dry-run before any vol create --yes. Non-negotiable even if user asks to skip.ask_user_question tool (not plain text output) to collect destructive confirmations.✅ INTERACTIVE PRINCIPLE: This skill is designed to be interactive. At every decision point, ASK the user and WAIT for their response before proceeding.
📋
.envSCOPE:.envis read only byvol migrateto extract legacy Snowflake connection values (SNOWFLAKE_DEFAULT_CONNECTION_NAME, etc.). No othervolcommand reads.env. All operational values — bucket, region, prefix, volume name — come frommanifest.tomlor explicit CLI flags. If a.envfile exists in the project after migration, ignore it entirely for allvolcommands.
📋
.envSCOPE:.envis read only byvol migrateto extract legacy Snowflake connection values (SNOWFLAKE_DEFAULT_CONNECTION_NAME, etc.). No othervolcommand reads.env. All operational values — bucket, region, prefix, volume name — come frommanifest.tomlor explicit CLI flags. If a.envfile exists in the project after migration, ignore it entirely for allvolcommands.
Non-negotiable precondition for ALL manifest-dependent flows: replay, remove, manage-existing.
Run before ANY of those operations:
<SKILL_DIR>/vol validate-manifest
If validation passes: proceed immediately.
If validation fails:
<SKILL_DIR>/vol validate-manifest --fix
Re-run validate-manifest. If still failing after --fix:
connection) that --fix cannot auto-repairvol setup-connection to set connection")If [snowflake].connection is empty after fix: redirect to Step 1 (connection picker) before continuing.
Run this before any other step — never skip or assume you are already in the right place.
If the user provided a project directory path → create it if needed and cd to it.
Check if .sfutils/manifest.toml exists in the current directory:
ls -la .sfutils/manifest.toml 2>/dev/null && echo "FOUND" || echo "NOT_FOUND"
If found → current directory is your project root. Proceed to Step 0.
If not found — check for legacy manifest:
ls -la .sfutils/sfutils-manifest.md 2>/dev/null && echo "LEGACY" || echo "NOT_FOUND"
vol migrate (Step 0, Case A)Check project state:
ls .sfutils/sfutils-manifest.md 2>/dev/null && echo "LEGACY" || true
ls .sfutils/manifest.toml 2>/dev/null && echo "TOML" || true
Case A — legacy manifest found, no TOML:
<SKILL_DIR>/vol migrate --dry-run
Review dry-run output, confirm with user, then:
<SKILL_DIR>/vol migrate
After migrate, always run vol check-setup (Step 2) since tools_verified will be empty.
Case B — TOML manifest found:
Run Volume Manifest Gate. If issues → vol validate-manifest --fix. Proceed to Step 1.
Case C — neither found (new project):
Proceed directly to Step 1 to set up connection and create manifest.toml.
✅ FAST-PATH: If manifest exists and
tools_verifiedhas a date → skip Step 2 check-setup entirely.
Check manifest for existing connection:
cat .sfutils/manifest.toml 2>/dev/null | grep "^connection"
If connection is set and non-empty: use it, skip to Step 2.
If connection is empty or manifest doesn't exist:
snow connection list --format json
Use ask_user_question tool to present connection options to the user.
Then test and cache to manifest:
<SKILL_DIR>/vol setup-connection -c <chosen_connection>
This writes [snowflake].connection, account, user, and account_url to manifest.toml.
If connection test fails: show error, ask user to check snow connection list and try again.
Read prereqs from manifest:
cat .sfutils/manifest.toml 2>/dev/null | grep "tools_verified"
If tools_verified has a date: Skip to Step 2c — tools already verified.
If tools_verified is empty or missing:
<SKILL_DIR>/vol check-setup --provider s3
This checks:
snow CLI availableaws CLI available (for S3 provider)On success, sets [prereqs].tools_verified to today's date in manifest.toml.
If csp_tools_ready: false in the output: the required CSP CLI tool is missing. Show what's missing and stop.
⚠️ STOP: Do not proceed until tools are verified.
Admin role is read from manifest.toml [snowflake].admin_role (default: ACCOUNTADMIN).
Check manifest:
cat .sfutils/manifest.toml 2>/dev/null | grep "admin_role"
If admin_role is set: use it.
If NOT set, prompt user:
External volume creation requires CREATE EXTERNAL VOLUME privilege.
Snowflake recommends: ACCOUNTADMIN (has this privilege by default)
Enter admin role for volumes [ACCOUNTADMIN]:
⚠️ STOP: Wait for user input. Then cache to manifest via vol setup-connection --admin-role <role>.
<SKILL_DIR>/vol list
If no volumes exist: proceed to Step 3 (new volume).
Ask user:
Multi-volume note: After each volume creation fully completes Steps 4–8 (dry-run → create → IAM propagation → verify → vol validate-manifest), return here to offer creating another. Do NOT proceed to the next volume until the current one is COMPLETE in the manifest.
If user is managing an existing volume or provided a volume name:
<SKILL_DIR>/vol describe --volume-name <VOLUME_NAME>
If volume exists: Ask user:
If volume doesn't exist or new volume requested: Continue to Step 4.
📝 NOTE: This limitation is about creating Storage Provider resources (cloud-side infrastructure). Snowflake supports S3, Azure Blob Storage, and GCS as external volume backends. This skill currently only automates provisioning of AWS S3 cloud resources.
Only AWS S3 is implemented. Always show all three providers — never compress to a one-line question.
✅ SELF-CHECK before sending your response: Does your message contain all three provider lines? If not, insert the full block below.
MANDATORY — paste the following to the user as one unit:
Storage provider:
(•) AWS S3 — supported in this skill and CLI today
( ) Azure Blob Storage — unavailable (planned / work in progress; not in sfutils-extvolumes yet)
( ) Google Cloud Storage — unavailable (planned / work in progress; not in sfutils-extvolumes yet)
Only AWS S3 is supported right now. Proceed with AWS S3 for this external volume?
⚠️ STOP: Wait for confirmation unless user already named S3 as provider.
Then:
After workflow-s3.md Step 6 completes, return here for Step 7.
<SKILL_DIR>/vol verify --volume-name <VOLUME_NAME>
The CLI automatically retries with exponential backoff on IAM propagation lag — no manual sleep needed. If verification still fails after all retries, the error is shown with the last storageLocationSelectionResult.
Present verification result and continue to Step 8.
The CLI automatically writes the volume entry to .sfutils/manifest.toml after creation.
Run manifest validation to confirm it is well-formed:
<SKILL_DIR>/vol validate-manifest
If validation fails: run vol validate-manifest --fix and re-check.
See Manifest Flows for the full manifest template format and example Iceberg DDL.
Iceberg users: If you encounter
Access Denied, trust policy errors, orSYSTEM$VERIFY_EXTERNAL_VOLUMEfailures after the volume is created, load theiceberg/external-volumesub-skill for cloud-provider-specific troubleshooting.
Use these workflows when the user asks to inspect or repair an existing external volume.
<SKILL_DIR>/vol list
Shows: LABEL / VOLUME_NAME / TYPE / STATUS for all volumes in manifest.toml.
<SKILL_DIR>/vol describe --volume-name <VOLUME_NAME>
Presents: storage location, IAM user ARN, external ID, and status.
When the user reports IAM trust policy mismatch:
<SKILL_DIR>/vol update-trust --bucket <BUCKET>
After update completes, run vol verify --volume-name <VOLUME_NAME> to confirm access is restored.
Always run Volume Manifest Gate first.
<SKILL_DIR>/vol list # confirm label/name
<SKILL_DIR>/vol validate-manifest # gate check
<SKILL_DIR>/vol delete --bucket <BUCKET> --yes --output json # remove resources
After delete: volume entry in manifest.toml is marked status = "REMOVED", entry preserved.
vol migrate.sfutils/manifest.toml with volume entrycli-reference.md (opens in a new tab)manifest-flows.md (opens in a new tab)prereqs.md (opens in a new tab)pyproject.toml (opens in a new tab)replay-flows.md (opens in a new tab)supplemental.md (opens in a new tab)uv.lock (opens in a new tab)vol (opens in a new tab)workflow-s3.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
Generated from the plugin's indexed repository (snowflake-labs/sfutils-plugins) — no native marketplace selected
npx claudepluginhub p/snowflake-labs-sfutils3 skills in this plugin
/network-ruleSetup and manage Snowflake network rules and policies using sfutils CLI with TOML manifest tracking. Use when: setting up network rules, creating network rules with GitHub Actions or Google IPs or local IP allowlisting, managing INGRESS/EGRESS/POSTGRES/INTERNAL_STAGE rules, CIDR allowlisting, firewall setup, dry-run preview, replaying network setup from manifest, cleaning up network resources, exporting network manifest for sharing. Triggers: sfutils-networks, setup-network-rules, network-rule, setup network, setup nw, allow gh, allow github, allow google, allow local, CIDR, egress rule, postgres ingress, AWSVPCEID, HOST_PORT, dry-run network, replay network, replay manifest, recreate network, export manifest, cleanup network, remove network rule, network manifest, multiple network rules, external access, call external API, OpenFlow connector, SPCS app, Snowpark external, EAI, integration, slack alert, pull from S3, HuggingFace, OpenAI from Snowflake.
/programmatic-access-tokenCreate Snowflake Programmatic Access Tokens (PATs) for service accounts. Use when: setting up service user, creating PAT, configuring authentication policy, network policy for PAT. Triggers: programmatic-access-token, sfutils-pat, create-access-token, programmatic access token, PAT, service account, snowflake authentication, replay pat, replay pat manifest, recreate pat, replay all manifests, replay all sfutils, export manifest for sharing, setup from shared manifest, replay from shared manifest, setup from manifest URL, replay from URL, use manifest from URL, multiple pats, multi-pat, add second pat, list pats, setup connection, validate manifest, migrate manifest, repair manifest, second service account.