network-policy
Infostrux-Solutions/network-policy/snowflake
Open Source Snowflake Terraform Module for Network Policy Implementation, also in the terraform registry, https://registry.terraform.io/modules/Infostrux-Solutions/network-policy/snowflake/latest
Snowflake Network Policy Terraform Module Terraform module which creates network policy resources on Snowflake. Usage Simple usage: ``hcl module "network_policy" { source = "Infostrux-Solutions/network-policy/snowflake" name = "simple-policy" allowed_ips = ["172.218.20.30/32"] } ` Full Usage: `hcl module "network_policy" { source = "Infostrux-Solutions/network-policy/snowflake" name = "advanced-policy" allowed_ips = ["172.218.20.30/32"] blocked_ips = ["124.74.33.12/32"] attach_policy = true set_for_account = false users_list = ["attach-policy-to-me"] } ` Requirements | Name | Version | |------|---------| | terraform | >= 0.13.1 | | snowflake | >=0.40.0 | Providers | Name | Version | |------|---------| | snowflake | >=0.40.0 | Modules No modules. Resources | Name | Type | |------|------| |
| Name | Type | Description | Default |
|---|---|---|---|
| name | string | The name to apply to the Snowflake network policy. | required |
| attach_policy | bool | Create the policy attachment at the same time. (true|false) | false |
| set_for_account | bool | Set this policy attachment on the account level. (true|false) | false |
| users_list | list(string) | A list of users that the policy will be attached to. | [] |
| comment | string | Comment (description) to add to the network policy. | "IPs allowed|blocked in the Snowflake ac |
| allowed_ips | list(string) | A list of IP/CIDRs to allow access into the Snowflake account. (This will by def | [] |
| blocked_ips | list(string) | A list of IP/CIDRs to block access into the Snowflake account. (Do not add 0.0.0 | [] |
allowed_ips — Allowed IP listblocked_ips — Blocked IPs listusers_list — Users list