简体   繁体   English

Terraform Snowpipe on Azure 集成错误

[英]Terraform Snowpipe on Azure error on integration

I'm trying to set up snowpipe with terraform on azure using https://registry.terraform.io/providers/chanzuckerberg/snowflake/latest/docs/resources/pipe#optional我正在尝试使用 azure 上的 terraform 使用https://registry.terraform.io/providers/chanzuckerberg/snowflake/latest/docs/resources/pipe#optional 设置 snowpipe

my resource looks like this:我的资源是这样的:

resource "snowflake_pipe" "pipe" {
  provider = snowflake.sys_admin
  integration = "myintegration"
  database = "mydb"
  schema   = "PUBLIC"
  name     = "mypipe"

  comment = "A pipe."


  copy_statement = "copy into \"db\".\"schema\".\"table\" from (select $1,$2,$3,$4,$5, $6, $7, $8, $9, $10, metadata$filename, metadata$file_row_number, current_timestamp  from   @db.PUBLIC.stage (file_format => TEST.PUBLIC.CSV))"
  auto_ingest    = true

}

when I run terraform apply I get:当我运行 terraform apply 时,我得到:

An argument named "integration" is not expected here.

If I remove integration = "myintegration" from above I get:如果我从上面删除integration = "myintegration"我得到:

Pipe Notifications bind failure "Integration cannot be null for Azure."

Has anyone managed to go around this?有没有人设法解决这个问题 go?

The integration argument was added to the resource schema in this commit on June 4, 2021. The provider is lacking a full CHANGELOG, so we have to use the general timeline estimates for versions from the provider registry. integration参数已于 2021 年 6 月 4 日添加到此提交中的资源架构中。提供程序缺少完整的 CHANGELOG,因此我们必须使用来自提供程序注册表的版本的一般时间线估计。 In that case, it would appear that you would need to upgrade your provider version to at least 0.25.0 to support this functionality.在这种情况下,您似乎需要将提供程序版本升级到至少0.25.0才能支持此功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM