简体   繁体   中英

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

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:

An argument named "integration" is not expected here.

If I remove integration = "myintegration" from above I get:

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

Has anyone managed to go around this?

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. 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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