-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changelog - New Resources: Added `EXTERNAL ACCESS INTEGRATION`, `NETWORK RULE`, `PASSWORD POLICY`, and `SECRET` - Bug fixes and test improvements - Fixes #9 --------- Co-authored-by: TJ Murphy <[email protected]>
- Loading branch information
Showing
108 changed files
with
1,530 additions
and
795 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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
Empty file.
This file contains 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,10 @@ | ||
{ | ||
"name": "TEST_ALERT", | ||
"warehouse": "static_warehouse", | ||
"schedule": "5 minutes", | ||
"condition": "SELECT 1", | ||
"then": "SELECT 2", | ||
"owner": "SYSADMIN", | ||
"comment": "This is a test alert", | ||
"tags": null | ||
} |
This file contains 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,15 @@ | ||
{ | ||
"name": "SOMEINT", | ||
"owner": "ACCOUNTADMIN", | ||
"api_provider": "AWS_API_GATEWAY", | ||
"api_key": "api-987654321", | ||
"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" | ||
], | ||
"api_blocked_prefixes": [ | ||
"https://xyz.execute-api.us-west-2.amazonaws.com/development" | ||
], | ||
"enabled": true, | ||
"comment": "This is a test integration" | ||
} |
Empty file.
This file contains 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,10 @@ | ||
{ | ||
"name": "TEST_DATABASE", | ||
"transient": false, | ||
"owner": "SYSADMIN", | ||
"data_retention_time_in_days": 1, | ||
"max_data_extension_time_in_days": 14, | ||
"default_ddl_collation": null, | ||
"comment": "This is a test database", | ||
"tags": null | ||
} |
This file contains 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 @@ | ||
{ | ||
"name": "SOMEDBROLE", | ||
"comment": null, | ||
"owner": "SYSADMIN", | ||
"tags": null | ||
} |
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
This file contains 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,16 @@ | ||
{ | ||
"name": "SOMEPOLICY", | ||
"owner": "SYSADMIN", | ||
"password_min_length": 12, | ||
"password_max_length": 24, | ||
"password_min_upper_case_chars": 2, | ||
"password_min_lower_case_chars": 2, | ||
"password_min_numeric_chars": 2, | ||
"password_min_special_chars": 2, | ||
"password_min_age_days": 1, | ||
"password_max_age_days": 30, | ||
"password_max_retries": 3, | ||
"password_lockout_time_mins": 30, | ||
"password_history": 5, | ||
"comment": "production account password policy" | ||
} |
Empty file.
Empty file.
This file contains 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,22 @@ | ||
{ | ||
"name": "MY_PYTHON_UDF", | ||
"owner": "SYSADMIN", | ||
"args": [], | ||
"returns": "NUMBER(38,0)", | ||
"runtime_version": "3.8", | ||
"packages": [ | ||
"snowflake-snowpark-python", | ||
"pyparsing" | ||
], | ||
"handler": "main", | ||
"as_": "def main(): return 42", | ||
"language": "PYTHON", | ||
"comment": null, | ||
"copy_grants": false, | ||
"external_access_integrations": null, | ||
"imports": null, | ||
"null_handling": null, | ||
"secrets": null, | ||
"secure": null, | ||
"volatility": null | ||
} |
Empty file.
This file contains 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 @@ | ||
{ | ||
"name": "TEST_ROLE", | ||
"owner": "SYSADMIN", | ||
"tags": null, | ||
"comment": null | ||
} |
This file contains 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 @@ | ||
{ | ||
"role": "STATIC_ROLE", | ||
"to_role": "SYSADMIN", | ||
"to_user": null | ||
} |
This file contains 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,15 @@ | ||
{ | ||
"name": "S3_INT", | ||
"type": "EXTERNAL_STAGE", | ||
"storage_provider": "S3", | ||
"storage_aws_role_arn": "arn:aws:iam::001234567890:role/myrole", | ||
"enabled": true, | ||
"storage_allowed_locations": [ | ||
"s3://mybucket1/path1/", | ||
"s3://mybucket2/path2/" | ||
], | ||
"storage_blocked_locations": null, | ||
"comment": null, | ||
"owner": "ACCOUNTADMIN", | ||
"storage_aws_object_acl": "bucket-owner-full-control" | ||
} |
This file contains 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,11 @@ | ||
{ | ||
"name": "TEST_SCHEMA", | ||
"transient": false, | ||
"managed_access": false, | ||
"data_retention_time_in_days": null, | ||
"max_data_extension_time_in_days": 14, | ||
"default_ddl_collation": null, | ||
"tags": null, | ||
"owner": "SYSADMIN", | ||
"comment": "This is a schema for testing purposes" | ||
} |
Empty file.
This file contains 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 @@ | ||
{ | ||
"name": "SOMESEQ", | ||
"owner": "SYSADMIN", | ||
"start": 1, | ||
"increment": 2, | ||
"comment": "+3" | ||
} |
Empty file.
Empty file.
Empty file.
This file contains 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,27 @@ | ||
{ | ||
"name": "MYTABLE", | ||
"columns": [ | ||
{ | ||
"name": "id", | ||
"data_type": "INT" | ||
}, | ||
{ | ||
"name": "amount", | ||
"data_type": "NUMBER" | ||
} | ||
], | ||
"constraints": null, | ||
"volatile": false, | ||
"transient": false, | ||
"cluster_by": null, | ||
"enable_schema_evolution": false, | ||
"data_retention_time_in_days": null, | ||
"max_data_extension_time_in_days": null, | ||
"change_tracking": false, | ||
"default_ddl_collation": null, | ||
"copy_grants": false, | ||
"row_access_policy": null, | ||
"tags": null, | ||
"owner": "SYSADMIN", | ||
"comment": null | ||
} |
Empty file.
Empty file.
This file contains 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,25 @@ | ||
{ | ||
"name": "JILL", | ||
"owner": "USERADMIN", | ||
"password": "p4ssw0rd", | ||
"login_name": "jill", | ||
"display_name": "jill", | ||
"first_name": null, | ||
"middle_name": null, | ||
"last_name": null, | ||
"email": null, | ||
"must_change_password": false, | ||
"disabled": false, | ||
"days_to_expiry": null, | ||
"mins_to_unlock": null, | ||
"default_warehouse": "XSMALL_WH", | ||
"default_namespace": null, | ||
"default_role": "PUBLIC", | ||
"default_secondary_roles": null, | ||
"mins_to_bypass_mfa": null, | ||
"rsa_public_key": null, | ||
"rsa_public_key_2": null, | ||
"comment": null, | ||
"network_policy": null, | ||
"tags": null | ||
} |
This file contains 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,17 @@ | ||
{ | ||
"name": "MY_VIEW", | ||
"owner": "SYSADMIN", | ||
"volatile": true, | ||
"as_": "SELECT id FROM STATIC_TABLE", | ||
"change_tracking": null, | ||
"columns": [ | ||
{ | ||
"name": "id" | ||
} | ||
], | ||
"comment": "This is a view", | ||
"copy_grants": null, | ||
"recursive": null, | ||
"secure": null, | ||
"tags": null | ||
} |
This file contains 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,20 @@ | ||
{ | ||
"name": "XSMALL_WH", | ||
"owner": "SYSADMIN", | ||
"warehouse_type": "STANDARD", | ||
"warehouse_size": "XSMALL", | ||
"max_cluster_count": null, | ||
"min_cluster_count": null, | ||
"scaling_policy": null, | ||
"auto_suspend": 60, | ||
"auto_resume": false, | ||
"initially_suspended": true, | ||
"resource_monitor": null, | ||
"comment": "My XSMALL warehouse", | ||
"enable_query_acceleration": null, | ||
"query_acceleration_max_scale_factor": null, | ||
"max_concurrency_level": 8, | ||
"statement_queued_timeout_in_seconds": 0, | ||
"statement_timeout_in_seconds": 172800, | ||
"tags": null | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains 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,15 @@ | ||
CREATE NETWORK RULE corporate_network | ||
TYPE = AWSVPCEID | ||
VALUE_LIST = ('vpce-123abc3420c1931') | ||
MODE = INTERNAL_STAGE | ||
COMMENT = 'corporate privatelink endpoint'; | ||
|
||
CREATE NETWORK RULE cloud_network | ||
TYPE = IPV4 | ||
VALUE_LIST = ('47.88.25.32/27') | ||
COMMENT ='cloud egress ip range'; | ||
|
||
CREATE NETWORK RULE external_access_rule | ||
TYPE = HOST_PORT | ||
MODE = EGRESS | ||
VALUE_LIST = ('example.com', 'company.com:443'); |
File renamed without changes.
Oops, something went wrong.