AWS Builder Center
Best Practices for Securing Snowflake on AWS - Version 2

Best Practices for Securing Snowflake on AWS - Version 2

Updated version with several improvement and corrections. Best practices for securing Snowflake data and access on AWS.

Series: Snowflake (3 articles)

  1. 1
    Best Practices for Securing Snowflake on AWS - Version 2 This article

Version 2 – November 2026
This document summarizes best practices for securing your data in Snowflake on AWS. It covers edition selection, access controls, network security, data security, monitoring, and HA/DR, including both Snowflake and AWS controls, plus architecture diagrams for centrally managing secure connectivity. Under the shared responsibility model, Snowflake encrypts data at rest and in transit and operates the platform; you are responsible for identity, access controls, network configuration, and the AWS resources Snowflake connects to.
Updates from Version 1:
This version contains several important updates from version 1 published a year ago. A detailed list of updates is provided in Appendix A. Changes include corrections to features by Snowflake edition, SAML federation, network controls, important updates to the Private Link architectures, a new section on mitigating confused deputy risks, and updates to example policies and SQL queries.

Foundational Setup – Edition Selection

Procure the Business Critical edition (or Virtual Private Snowflake (VPS) for the highest isolation). Business Critical adds the following to Enterprise:
○ Tri-Secret Secure – a composite master key combining a Snowflake-maintained key and a customer-managed key in AWS KMS
○ Private Connectivity (AWS PrivateLink), which removes data traffic from the public internet.
○ Support for PHI (HIPAA/HITRUST, with a signed BAA) and PCI DSS workloads, plus failover/failback with client redirect
○ Note: Column-level security (masking), row access policies, periodic rekeying, Time Travel up to 90 days, and Access History are Enterprise Edition features and are included in Business Critical (see Appendix A).

Access Controls

Identity Federation and Authentication

Use federated access as a single point of control for users, and secretless authentication for workloads
○ Federate users via SAML 2.0 from AWS IAM Identity Center (as an external SAML application) or your enterprise IdP (e.g., Okta, Entra ID); AWS IAM itself is not a SAML identity provider for Snowflake sign-in
○ For AWS workloads, use Snowflake Workload Identity Federation so an IAM role authenticates to Snowflake without a stored secret [verify region/driver support]; otherwise use key-pair authentication or programmatic access tokens (PATs) on TYPE = SERVICE users
○ Require MFA for all human users with authentication policies (restrict allowed authentication methods and client types per user/integration)
○ Single-factor password sign-in is being deprecated by Snowflake [verify timeline]; do not issue passwords to service users, and use password policies only as a transitional control
○ Where credentials are unavoidable, store them in AWS Secrets Manager with automatic rotation, a customer-managed KMS key, and a resource policy restricting which roles can read the secret
○ Automate provisioning and deprovisioning with Snowflake SCIM (System for Cross-domain Identity Management) from your IdP
○ Perform regular access reviews (quarterly at minimum)
○ Assign an owner and expiry to every service user, key pair, and PAT; rotate keys on a schedule

Session Management

Set appropriate limits on Snowflake sessions
o Set appropriate session timeout values using  Snowflake Session Policies 
o Monitor logins and sessions using the ACCOUNT_USAGE LOGIN_HISTORY and SESSIONS views (Access History records data access, not sessions)
o Use connection pooling in your applications and drivers to limit connection counts
o Implement client session keep-alive parameters only where necessary
o Perform regular audit of active sessions

Role Based Access Controls (RBAC)

Design and implement a robust role-based access control (RBAC) model with separate object access and functional role.

Role Categories

o Functional Roles - based on job function (e.g. analyst, data engineering)
o Access Roles – grants access to specific SF objects and functions
o Assign users to functional roles; grant access roles to functional roles, never directly to users

Role Hierarchy

o Implement principle of least privilege
o Define role inheritance structure
o Perform regular role access review
o Document role assignments
○ Limit ACCOUNTADMIN to a small number of named users (at least two), require MFA, and never set it as a default role
○ Separate SECURITYADMIN/USERADMIN (identity and grants) from SYSADMIN (objects); maintain a documented break-glass procedure
○ Use managed access schemas so object owners cannot grant privileges outside the central model

Object Security

o Apply row access policies for granular, row-level data access controls
o Manage secure objects, policies, and grants as code under version control (see Configuration as Code)

Network Access Control

○ Use  AWS PrivateLink  for secure connectivity
○ Create an S3 interface VPC endpoint and enable internal stage PrivateLink so PUT/GET and COPY to internal stages stay private (gateway endpoints are not reachable across Transit Gateway)
○ Create Snowflake network rules (IPV4 and AWSVPCEID types) and attach them to network policies at the account, user, or security-integration level
○ When PrivateLink is in place, allowlist only your VPC endpoint IDs and block public IP access, with narrowly scoped exceptions (e.g., specific SaaS tool egress IPs)
○ Isolate sensitive workloads in separate VPCs/accounts with dedicated network policies

Central Management of Snowflake Secure Connectivity

The following architecture supports connectivity from workloads in multiple AWS accounts to Snowflake through a single, centrally managed PrivateLink interface endpoint. Authorize the connectivity account with SYSTEM$AUTHORIZE_PRIVATELINK; create private hosted zone records for every URL returned by SYSTEM$GET_PRIVATELINK_CONFIG (account, regionless organization-account, OCSP, and Snowsight/app URLs); and associate the zone with workload VPCs using a Route 53 Profile shared through AWS RAM, or by cross-account zone association. Private hosted zones cannot be shared directly through RAM. The endpoint security group should allow inbound 443 and 80 (OCSP) only from workload CIDRs. Replicate the design in your DR region to support client redirect.


For connections initiated by Snowflake to your services, the direction of PrivateLink reverses: your account is the service provider. You place your targets behind a Network Load Balancer and publish a VPC Endpoint Service; Snowflake creates the interface endpoint in its own VPC with SYSTEM$PROVISION_PRIVATELINK_ENDPOINT. Configure the endpoint service to require acceptance, allow only the Snowflake principal, and accept only the endpoint ID that Snowflake reports. Then reference the private hostname in Snowflake network rules and external access or other integrations.

Each Snowflake endpoint maps to a single service name, so fronting many of your own services (EC2, ALB, or IP targets over Transit Gateway) with one NLB-backed endpoint service minimizes endpoints. For Amazon S3 and other AWS services Snowflake supports directly, use Snowflake's direct private endpoint rather than routing through the NLB [verify supported services].



For HTTP(S) targets whose IP addresses change, the NLB can forward to an Application Load Balancer that uses IP target groups. A scheduled Lambda function (control plane only, not in the data path) resolves the target DNS names and updates the ALB target groups, avoiding static IP configuration without turning Lambda into a proxy. Use ACM certificates that match the hostnames Snowflake calls, and grant the Lambda least-privilege permissions for target registration only.


Mitigating the Confused Deputy Problem

A confused deputy occurs when a trusted service is tricked into using its permissions on behalf of an unauthorized party. With Snowflake, the deputy is the Snowflake-owned AWS principal (an IAM user, or the PrivateLink principal). That principal can be shared across integrations and customers, so trusting the principal alone is never sufficient. Every trust relationship must also verify a per-customer value: the External ID, or the specific endpoint ID.




Snowflake → your AWS account (storage integrations, external volumes, Snowpipe/SNS notification integrations, API integrations, Tri-Secret Secure KMS)

○ Always require sts:ExternalId in the IAM role trust policy, using the value from DESC INTEGRATION (STORAGE_AWS_EXTERNAL_ID / API_AWS_EXTERNAL_ID)
○ Trust the exact Snowflake IAM user ARN (STORAGE_AWS_IAM_USER_ARN), never the Snowflake AWS account root
○ Use one IAM role per integration and environment, with no wildcard resource ARNs
○ CREATE OR REPLACE INTEGRATION generates a new External ID and breaks the trust; set STORAGE_AWS_EXTERNAL_ID explicitly if a stable value is needed, and document a rotation procedure
○ Constrain reach with STORAGE_ALLOWED_LOCATIONS / STORAGE_BLOCKED_LOCATIONS and least-privilege S3 actions
○ Restrict CREATE INTEGRATION and USAGE on integrations to a small administrative role; set REQUIRE_STORAGE_INTEGRATION_FOR_STAGE_CREATION and _OPERATION, and PREVENT_UNLOAD_TO_INLINE_URL
○ For Tri-Secret Secure, give the Snowflake principal only the KMS actions it needs, and alarm on unexpected key usage
○ Where applicable, add aws:SourceVpc conditions on bucket policies using the Snowflake VPC IDs from SYSTEM$GET_SNOWFLAKE_PLATFORM_INFO [verify]
○ Detect: IAM Access Analyzer for roles that external accounts can assume; CloudTrail alerts on AssumeRole by the Snowflake principal

Snowflake → your Endpoint Service (outbound PrivateLink)

○ Set the endpoint service to require acceptance, and allow only the Snowflake principal
○ Accept only the endpoint ID that Snowflake returns for your account (SYSTEM$GET_PRIVATELINK_ENDPOINTS_INFO [verify]); reject any other request, because the allowed principal may be shared
○ Security groups: the NLB accepts only endpoint traffic, and targets accept only the NLB

Your AWS accounts and SaaS tools → Snowflake

○ When AWS services (Glue, AppFlow, SageMaker, Lambda) connect to Snowflake on your behalf, add aws:SourceArn and aws:SourceAccount conditions to the role trust, secret, and KMS key policies they use
○ Bind each workload to one identity (Workload Identity Federation tied to a specific role ARN, or a dedicated key-pair service user) with a user-level network policy allowing only that workload's VPC endpoint ID
○ Multi-tenant SaaS tools should use a vendor External ID or a per-tenant identity; never share Snowflake credentials across tenants, and review vendor access quarterly

Snowflake-to-AWS Integration Controls

○ Storage integrations / external stages: IAM role + External ID, allowed locations, SSE-KMS buckets with Block Public Access
○ External volumes (Iceberg tables): dedicated role and bucket prefix; KMS key policy scoped to the Snowflake principal
○ Snowpipe auto-ingest and notification integrations: SQS/SNS resource policies limited to the Snowflake principal and the specific topic or queue ARNs
○ API integrations / external functions: API Gateway private endpoints or resource policies, IAM authorization, and API_ALLOWED_PREFIXES
○ External access integrations: egress network rules for specific hosts/ports only, secrets for credentials, and USAGE limited to specific roles

Third-Party SaaS and External Platform Connectivity

○ Create a dedicated TYPE = SERVICE user and least-privilege role per tool (ETL, BI, reverse-ETL)
○ Attach a user-level network policy allowing only the vendor's published egress IPs or PrivateLink endpoint
○ Prefer key-pair, OAuth, or Workload Identity Federation over passwords; rotate credentials and review vendor access regularly
○ Use Secure Data Sharing instead of extracts where possible; restrict reader accounts and monitor shares

AWS Data Perimeter and Security Services

○ Apply SCPs/RCPs with aws:PrincipalOrgID, aws:ResourceOrgID, and aws:SourceVpc, with explicit, documented exceptions for the Snowflake principals
○ Enable IAM Access Analyzer, GuardDuty (including S3 protection), Macie on staging buckets, Security Hub, and VPC Flow Logs
○ Control egress with Route 53 Resolver DNS Firewall and AWS Network Firewall




Data Security Controls

Data Encryption

SF encrypts data at rest and in transit by default, but clients can take additional encryptions measure to increase data security
o Enable Tri-Secret Secure for sensitive data: a composite master key combining a Snowflake-maintained key and your customer-managed key in AWS KMS. Revoking your key makes the data inaccessible.
o Use an AWS KMS customer-managed key with a key policy granting the Snowflake principal only the required actions (see Confused Deputy)
o Use client-side encryption for external stages where end-to-end protection is required
o Snowflake rotates its keys automatically (every 30 days); enable periodic rekeying (Enterprise+) for yearly rekeying; rotate your KMS key according to policy
o For field-level encryption beyond masking, use ENCRYPT/DECRYPT functions or external tokenization via external functions (note: Snowflake "Column-level Security" means masking, not encryption)

Data Classification

Initiate a data classification project using Object Tagging to identify and label all PHI and sensitive data columns. Create and apply Dynamic Data Masking policies that reference the object tags, ensuring PHI data is dynamically masked for unauthorized users. Utilize Row-Level Security to filter data based on user roles and context.
o Implement tagging for PHI/PII data
o Define data sensitivity levels
o Use Snowflake Horizon lineage and object dependencies to document data lineage
o Regular data classification audits
○ Use Snowflake automatic sensitive data classification to discover and tag PII/PHI

Secure Data Transfer, Loading, and Sharing

o Use only encrypted connections (TLS 1.2+)
o Use a Snowflake Storage Integration with an IAM role (with External ID condition and STORAGE_ALLOWED_LOCATIONS) for access to Amazon S3 without stored AWS credentials
o Where access credentials are required, store those in  AWS Secrets Manager 
o Use Snowflake Secure Data Sharing to share data with third parties without copies; restrict reader accounts and use replication for cross-region sharing
o Implement secure file transfer protocols
o Monitor data egress points
○ Prevent exfiltration with REQUIRE_STORAGE_INTEGRATION_FOR_STAGE_CREATION / _OPERATION and PREVENT_UNLOAD_TO_INLINE_URL
○ Apply S3 bucket policies with Block Public Access, SSE-KMS, and aws:SourceVpc conditions where applicable

Data Masking and Tokenization

o Dynamic data masking for PHI (consider  Snowflake Dynamic Data Masking )
o Use external tokenization (via external functions) or ENCRYPT/DECRYPT for sensitive fields that require true encryption
o Implement secure views for PII
o Use tokenization for sensitive identifiers

Monitoring and Alerting

o Snowflake logs: export ACCOUNT_USAGE views (LOGIN_HISTORY, ACCESS_HISTORY, QUERY_HISTORY) to your SIEM or Amazon Security Lake
o AWS logs: use CloudTrail to record AssumeRole, S3, and KMS calls made by Snowflake principals (CloudTrail does not capture activity inside Snowflake)
o Create Snowflake alerts and CloudWatch/EventBridge alarms for security events
o Implement automated response procedures
o Enable comprehensive audit logging
o Regular compliance reporting
o Retain audit records per policy; ACCOUNT_USAGE keeps 365 days, so export for longer retention (HIPAA requires documentation to be retained for 6 years)
o Automated audit log analysis
○ Use the Snowflake Trust Center (CIS benchmark scanning) for continuous security posture checks
o Keep Snowflake clients updated
o Regular security patch management
o Version control for procedures
o Change management documentation

Configuration as Code

○ Manage users, roles, grants, policies, network rules, and integrations with the Terraform Snowflake provider, with drift detection
○ Manage the AWS side (IAM roles, endpoint services, PHZ/Profiles, KMS) with CloudFormation/CDK/Terraform, and monitor it with AWS Config



High Availability and Disaster Recovery

Data Protection is Built-In

Snowflake Time Travel lets you recover data from any point within the retention period: 1 day by default, configurable up to 90 days on Enterprise and higher. After Time Travel, Fail-safe provides an additional 7 days of Snowflake-managed recovery (not user-accessible).




High Availability is Built-In

Snowflake automatically configures HA across availability zones within your primary region. They handle compute node failures and storage service failures automatically.




Cross Region Disaster Recovery

Unlike HA and data protection within your primary region, you must configure cross-region replication for disaster recovery. Failover groups and client redirect require Business Critical edition or higher.
o Create a Secondary Account - In a different region or cloud, create a new Snowflake account within the same organization.
o Enable Replication - Enable the organization accounts for replication (ORGADMIN), then define what to replicate using replication or failover groups in SQL
o Create a Failover Group - In the primary account, create a failover group that includes all critical account objects like databases, warehouses, user accounts, and grants.
o Configure Replication in the Secondary Account - In the secondary account, create a failover group that serves as a replica of the primary group, establishing a replication schedule.
o Set Up Client Redirect - Create a connection object and point applications to its connection URL; on failover, promote the secondary connection so clients are redirected automatically
o Perform Failover - During a disaster, execute commands to promote the secondary failover group to primary, making it active and writable.
o Perform Failback - Once the outage is resolved, execute commands to fail back to the original primary account, redirecting clients to the restored primary location.
○ Configure PrivateLink, DNS records, network policies, and integrations in the DR region in advance
○ Test failover and failback on a regular schedule (at least annually)



References

The  Snowflake Security Best Practices  document from SF provides guidance in network, IAM, and data encryption security
The Snowflake Guide on Security provides guidance on access controls
The  Snowflake Guide and Network Policies  provides detailed implementation guidelines for controlling network access to SF, including  external access 
The Snowflake SCIM (System for Cross-domain Identity Management) features enable automated user and group provisioning and deprovisioning with third-party identity providers (IdPs)
Snowflake's guidance on business continuity and disaster recovery
How to Achieve HIPAA Compliance with Snowflake


Appendix A. Changes from Version 1 of this Document

○ Corrected Edition Selection: separated Enterprise from Business Critical features; renamed "VPC Edition" to Virtual Private Snowflake (VPS)
○ Updated identity guidance: replaced "IAM SAML federation" with IAM Identity Center / enterprise IdP; added Workload Identity Federation, key-pair/PAT auth, authentication policies, and the retirement of single-factor passwords
○ Expanded RBAC with privileged-role controls (ACCOUNTADMIN, break-glass, managed access schemas)
○ Updated network controls to network rules + network policies, with VPC endpoint ID allowlisting and blocking public access
○ Corrected all three PrivateLink architectures: Route 53 Profiles (private hosted zones cannot be shared via RAM), full DNS record list, OCSP/port requirements, internal stage PrivateLink, and DR
○ Corrected the Snowflake-initiated architecture: your account hosts a VPC Endpoint Service on the NLB, and Snowflake provisions the endpoint; direct private endpoints for S3
○ Replaced the NLB→ALB→Lambda proxy design with an ALB IP-target pattern refreshed by a scheduled Lambda
○ NEW section: Mitigating the Confused Deputy Problem (with architecture diagram)
○ NEW sections: Snowflake-to-AWS integration controls, SaaS/third-party tool connectivity, AWS data perimeter, AWS-side security services, Snowflake Horizon/Trust Center, configuration as code
○ Corrected encryption, monitoring, retention (HIPAA 6 years; ACCOUNT_USAGE 365 days), Time Travel (default 1 day; up to 90 on Enterprise+), and DR (failover groups, connection objects)
○ Fixed SQL examples (alert, network policy, row access, masking), reference names, typos, and appendix numbering
○ Items marked [verify] should be confirmed against current Snowflake documentation before publication



Appendix B. Snowflake Editions


Feature/Service
Standard Edition
Enterprise Edition
Business Critical Edition
VPS
SOC 2 Type II certification
✔
✔
✔
✔
Federated authentication and SSO
✔
✔
✔
✔
Network policies
✔
✔
✔
✔
Automatic encryption of all data
✔
✔
✔
✔
Multi-factor authentication (MFA)
✔
✔
✔
✔
Object-level access control
✔
✔
✔
✔
Dynamic Data Masking

✔
✔
✔
Row-level Security

✔
✔
✔
Audit user access history

✔
✔
✔
Customer-managed encryption keys (Tri-Secret Secure)


✔
✔
Private connectivity (AWS PrivateLink)


✔
✔
Support for PHI data (HIPAA/HITRUST)


✔
✔
Support for PCI DSS


✔
✔
Dedicated metadata store & compute pool



✔


Appendix C: HIPAA Considerations

Secure a signed Business Associate Agreement (BAA) with Snowflake before loading any PHI data. This is supported by the Business Critical and VPS editions.

HIPAA Compliance Controls

Documentation Requirements

o Maintain security policies
o Document access procedures
o Regular policy reviews
o Training documentation

Incident Response

o Define incident response procedures
o Document breach notification process
o Regular incident response drills
o Post-incident analysis procedures

Compliance Monitoring

o Regular compliance assessments
o Automated compliance checking
o Integration with AWS Config
o Compliance reporting procedures

Business Continuity

o Implement disaster recovery procedures
o Regular backup testing
o Failover procedures
o Business continuity documentation

Third-Party Risk Management

o Vendor security assessments
o Integration security reviews
o Regular security evaluations
o Contract compliance reviews


Appendix D: Common RBAC Roles and Data Classifications

Common RBAC User Roles
o Data Scientists
o Analysts
o Data Engineers
o Compliance Officers
o System Administrators
Common Data Classifications
o PHI
o PII
o Financial data
o Clinical research data

Appendix E: Example SF Policies

· Masking PII
o Dynamic Data Masking is a powerful feature that allows you to obscure data in real time based on a user's role. The underlying data remains unchanged, but the user's view of it is masked.
o How it Works: You define a masking policy in Snowflake. This policy is a SQL expression that checks the user's role (CURRENT_ROLE()) and returns either the unmasked data (for authorized roles) or a masked version (for unauthorized roles).
§ Example Policy: A masking policy for a Social Security Number (SSN) column might be configured to show the full SSN to users with the BILLING_ADMIN_ROLE but only show the last four digits to a user with the ANALYST_ROLE. For all other users, it could return a static string like '***MASKED***'.
o Policy-Driven Security: By applying masking policies to tagged columns, you can create a scalable and consistent security model. When a column is tagged as PHI, an automated process can apply the appropriate masking policy, ensuring that the data is protected by default.
sql
CREATE MASKING POLICY ssn_mask AS (val STRING)
RETURNS STRING ->
CASE
WHEN IS_ROLE_IN_SESSION('COMPLIANCE_ROLE') THEN val
ELSE 'XXX-XX-XXXX'
END;
ALTER TABLE patients MODIFY COLUMN ssn SET MASKING POLICY ssn_mask;
· Suspicious Logins
sql
CREATE OR REPLACE ALERT abnormal_login
WAREHOUSE = security_wh
SCHEDULE = '60 MINUTE'
IF (EXISTS (
SELECT 1 FROM snowflake.account_usage.login_history
WHERE event_timestamp > DATEADD('hour', -1, CURRENT_TIMESTAMP())
AND is_success = 'NO'
GROUP BY user_name HAVING COUNT(*) > 10))
THEN CALL SYSTEM$SEND_EMAIL('sec_email_int', ' secops@example.com ',
'Abnormal logins', 'More than 10 failed logins for a user in the last hour');
-- Note: ACCOUNT_USAGE latency can be up to ~2 hours; ALTER ALERT abnormal_login RESUME;

· Row Access Policies
  • Row Access Policies allow you to filter rows in a table based on a user's identity or role. This is useful for limiting a user's view to only the data they are authorized to see.
  • Use Cases:
  • A hospital administrator might only be able to view patient records from their specific hospital.
  • A clinical researcher might only be able to see data from patients who have opted into a specific study.
  • Implementation: Create a mapping table (e.g., user or role → hospital_id) and a row access policy such as: EXISTS (SELECT 1 FROM entitlements e WHERE e.role_name = CURRENT_ROLE() AND e.hospital_id = hospital_id).

· Network Rule and Policy for allowlisting IP addresses and VPC endpoints
-- First, create the network policy
CREATE NETWORK RULE corp_ips TYPE = IPV4 MODE = INGRESS VALUE_LIST = ('[IP_ADDRESS]');
CREATE NETWORK RULE corp_vpce TYPE = AWSVPCEID MODE = INGRESS VALUE_LIST = ('vpce-0123456789abcdef0');
CREATE OR REPLACE NETWORK POLICY restricted_access_policy
ALLOWED_NETWORK_RULE_LIST = ('corp_ips', 'corp_vpce')
COMMENT = 'Allow only corporate IPs and our PrivateLink endpoint';

-- Apply the network policy to your account
ALTER ACCOUNT SET NETWORK_POLICY = restricted_access_policy;

-- Optional: Apply to specific users
ALTER USER user1 SET NETWORK_POLICY = restricted_access_policy;

-- Optional: Apply to a security integration (e.g., OAuth/SCIM)
ALTER SECURITY INTEGRATION my_oauth_int SET NETWORK_POLICY = restricted_access_policy;

-- To verify the policy
SHOW NETWORK POLICIES;

-- To see where the policy is applied
SHOW PARAMETERS LIKE 'NETWORK_POLICY' IN ACCOUNT;

--- To remove this policy
ALTER ACCOUNT UNSET NETWORK_POLICY;

Series: Snowflake (3 articles)

  1. 1
    Best Practices for Securing Snowflake on AWS - Version 2 This article
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article