-
Notifications
You must be signed in to change notification settings - Fork 10
added Support for account objects #50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
example_scripts/main/ACCOUNT/API_INTEGRATIONS/AWS_API_GATEWAY.SQL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| CREATE OR REPLACE API INTEGRATION AWS_API_GATEWAY | ||
| API_PROVIDER = aws_api_gateway | ||
| API_AWS_ROLE_ARN = 'arn:aws:iam::123456789012:role/my_cloud_account_role' | ||
| API_ALLOWED_PREFIXES = ('https://xyz.execute-api.us-west-2.amazonaws.com/production') | ||
| ENABLED = TRUE; |
5 changes: 5 additions & 0 deletions
5
example_scripts/main/ACCOUNT/AUTHENTICATION_POLICIES/MFA_POLICY.SQL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| CREATE OR REPLACE AUTHENTICATION POLICY mfa_policy | ||
| AUTHENTICATION_METHODS = ('PASSWORD', 'KEYPAIR') | ||
| MFA_ENROLLMENT = 'REQUIRED' | ||
| CLIENT_TYPES = ('ALL') | ||
| COMMENT = 'Authentication policy requiring MFA'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| ---version: 0, author: DlSync | ||
| CREATE DATABASE IF NOT EXISTS ${EXAMPLE_DB}; | ||
| ---rollback: DROP DATABASE IF EXISTS ${EXAMPLE_DB} CASCADE; | ||
| ---verify: SHOW DATABASES LIKE '${EXAMPLE_DB}'; |
3 changes: 3 additions & 0 deletions
3
example_scripts/main/ACCOUNT/NETWORK_POLICIES/ALLOW_INTERNAL_IPS.SQL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| CREATE OR REPLACE NETWORK POLICY allow_internal_ips | ||
| ALLOWED_NETWORK_RULE_LIST = (${EXAMPLE_DB}.${MAIN_SCHEMA}.INTERNAL_IPS_RULE) | ||
| COMMENT = 'Network policy for internal access only'; |
6 changes: 6 additions & 0 deletions
6
example_scripts/main/ACCOUNT/NOTIFICATION_INTEGRATIONS/EMAIL_NOTIFICATION.SQL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| CREATE OR REPLACE NOTIFICATION INTEGRATION email_notification | ||
| TYPE = 'EMAIL' | ||
| ENABLED = TRUE | ||
| COMMENT = 'Email notification integration for alerts'; | ||
|
|
||
|
|
9 changes: 9 additions & 0 deletions
9
example_scripts/main/ACCOUNT/PASSWORD_POLICIES/PASSWORD_STRENGTH_POLICY.SQL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| CREATE OR REPLACE PASSWORD POLICY password_strength_policy | ||
| PASSWORD_MIN_LENGTH = 12 | ||
| PASSWORD_MAX_LENGTH = 256 | ||
| PASSWORD_MIN_UPPER_CASE_CHARS = 1 | ||
| PASSWORD_MIN_LOWER_CASE_CHARS = 1 | ||
| PASSWORD_MIN_NUMERIC_CHARS = 1 | ||
| PASSWORD_MIN_SPECIAL_CHARS = 1 | ||
| PASSWORD_HISTORY = 5 | ||
| COMMENT = 'Password policy enforcing strong passwords'; |
5 changes: 5 additions & 0 deletions
5
example_scripts/main/ACCOUNT/RESOURCE_MONITORS/COMPUTE_MONITOR.SQL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| CREATE OR REPLACE RESOURCE MONITOR compute_monitor | ||
| CREDIT_QUOTA = 100 | ||
| TRIGGERS ON 50 PERCENT DO NOTIFY | ||
| ON 75 PERCENT DO NOTIFY | ||
| ON 100 PERCENT DO SUSPEND; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| ---version: 0, author: DlSync | ||
| CREATE OR REPLACE ROLE USER_ROLE; | ||
| ---verify: SHOW ROLES LIKE 'USER_ROLE'; | ||
| ---rollback: DROP ROLE IF EXISTS USER_ROLE; | ||
|
|
||
| ---version: 1, author: DlSync | ||
| GRANT USAGE ON DATABASE ${EXAMPLE_DB} TO ROLE USER_ROLE; | ||
| ---verify: SHOW GRANTS TO ROLE USER_ROLE; | ||
| ---rollback: REVOKE USAGE ON DATABASE ${EXAMPLE_DB} FROM ROLE USER_ROLE; | ||
|
|
||
| ---version: 2, author: DlSync | ||
| GRANT USAGE ON SCHEMA ${EXAMPLE_DB}.${MAIN_SCHEMA} TO ROLE USER_ROLE; | ||
| ---verify: SHOW GRANTS TO ROLE USER_ROLE; | ||
| ---rollback: REVOKE USAGE ON SCHEMA ${EXAMPLE_DB}.${MAIN_SCHEMA} FROM ROLE; |
4 changes: 4 additions & 0 deletions
4
example_scripts/main/ACCOUNT/SCHEMAS/${EXAMPLE_DB}.${AUDIT_SCHEMA}.SQL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| ---version: 0, author: DlSync | ||
| CREATE SCHEMA IF NOT EXISTS ${EXAMPLE_DB}.${AUDIT_SCHEMA}; | ||
| ---rollback: DROP SCHEMA IF EXISTS ${EXAMPLE_DB}.${AUDIT_SCHEMA} CASCADE; | ||
| ---verify: SHOW SCHEMA LIKE '${EXAMPLE_DB}.${AUDIT_SCHEMA}'; |
4 changes: 4 additions & 0 deletions
4
example_scripts/main/ACCOUNT/SCHEMAS/${EXAMPLE_DB}.${MAIN_SCHEMA}.SQL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| ---version: 0, author: DlSync | ||
| CREATE SCHEMA IF NOT EXISTS ${EXAMPLE_DB}.${MAIN_SCHEMA}; | ||
| ---rollback: DROP SCHEMA IF EXISTS ${EXAMPLE_DB}.${MAIN_SCHEMA} CASCADE; | ||
| ---verify: SHOW SCHEMA LIKE '${EXAMPLE_DB}.${MAIN_SCHEMA}'; |
8 changes: 8 additions & 0 deletions
8
example_scripts/main/ACCOUNT/SECURITY_INTEGRATIONS/OAUTH_INTEGRATION.SQL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| CREATE OR REPLACE SECURITY INTEGRATION oauth_integration | ||
| TYPE = oauth | ||
| ENABLED = true | ||
| OAUTH_CLIENT = custom | ||
| OAUTH_CLIENT_TYPE = 'CONFIDENTIAL' | ||
| OAUTH_REDIRECT_URI = 'https://localhost.com' | ||
| OAUTH_ISSUE_REFRESH_TOKENS = TRUE | ||
| OAUTH_REFRESH_TOKEN_VALIDITY = 86400; |
4 changes: 4 additions & 0 deletions
4
example_scripts/main/ACCOUNT/SESSION_POLICIES/SESSION_TIMEOUT_POLICY.SQL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| CREATE OR REPLACE SESSION POLICY session_timeout_policy | ||
| SESSION_IDLE_TIMEOUT_MINS = 60 | ||
| SESSION_UI_IDLE_TIMEOUT_MINS = 15 | ||
| COMMENT = 'Session timeout policy for security'; |
7 changes: 7 additions & 0 deletions
7
example_scripts/main/ACCOUNT/STORAGE_INTEGRATIONS/S3_INTEGRATION.SQL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| CREATE OR REPLACE STORAGE INTEGRATION s3_integration | ||
| TYPE = 'EXTERNAL_STAGE' | ||
| ENABLED = FALSE | ||
| STORAGE_PROVIDER = 'S3' | ||
| STORAGE_AWS_ROLE_ARN = 'arn:aws:iam::123456789012:role/snowflake-role' | ||
| STORAGE_ALLOWED_LOCATIONS = ('s3://my-bucket/data/') | ||
| COMMENT = 'S3 storage integration for data ingestion'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| CREATE OR REPLACE WAREHOUSE example_wh | ||
| WAREHOUSE_SIZE = 'XSMALL' | ||
| WAREHOUSE_TYPE = 'STANDARD' | ||
| AUTO_SUSPEND = 300 | ||
| AUTO_RESUME = TRUE | ||
| INITIALLY_SUSPENDED = TRUE | ||
| RESOURCE_MONITOR = compute_monitor | ||
| COMMENT = 'Example warehouse for demonstration purposes'; |
7 changes: 7 additions & 0 deletions
7
example_scripts/main/example_db/MAIN_SCHEMA/NETWORK_RULES/INTERNAL_IPS_RULE.SQL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| CREATE OR REPLACE NETWORK RULE ${EXAMPLE_DB}.${MAIN_SCHEMA}.INTERNAL_IPS_RULE | ||
| MODE = INGRESS | ||
| TYPE = IPV4 | ||
| VALUE_LIST = ('192.168.0.0/24', '192.168.1.0/24') | ||
| COMMENT = 'Example network rule for ingress traffic' | ||
| ; | ||
|
|
2 changes: 1 addition & 1 deletion
2
example_scripts/main/example_db/MAIN_SCHEMA/STREAMLITS/PRODUCT_DASH_BOARD.SQL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| releaseVersion=2.6.1 | ||
| releaseVersion=3.0.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.