如何通过Terraform创建Snowflake数据库时避免自动生成PUBLIC schema
阻止Snowflake数据库自动创建PUBLIC Schema的方法
要阻止Terraform创建Snowflake数据库时自动生成PUBLIC schema,只需在snowflake_database资源中添加skip_public_schema参数并设置为true即可。
修改后的配置代码如下:
resource "snowflake_database" "simple" { name = "testing" comment = "test comment" data_retention_time_in_days = 3 skip_public_schema = true }
skip_public_schema是Snowflake Terraform Provider提供的专属参数,启用后会跳过默认PUBLIC schema的创建流程,完全匹配你的需求。
内容的提问来源于stack exchange,提问作者Joost Döbken
相关产品推荐
相关产品推荐

