Skip to content

Commit c17d779

Browse files
add examples for stage's file_format from #265
1 parent 646a84b commit c17d779

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/resources/stage.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ resource "snowflake_stage" "example_stage" {
4444
- `directory` (String) Specifies the directory settings for the stage.
4545
- `encryption` (String) Specifies the encryption settings for the stage.
4646
- `file_format` (String) Specifies the file format for the stage. Specifying the default Snowflake value (e.g. TYPE = CSV) will currently result in a permadiff (check [#2679](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2679)). For now, omit the default values; it will be fixed in the upcoming provider versions.
47+
48+
Examples of usage:
49+
* with hardcoding value: `file_format="FORMAT_NAME = DB.SCHEMA.FORMATNAME"`
50+
* from dynamic value: `file_format = "FORMAT_NAME = ${snowflake_database.mydb.name}.${snowflake_schema.myschema.name}.${snowflake_file_format.myfileformat.name}"`
51+
* from expression: `file_format = format("FORMAT_NAME =%s.%s.MYFILEFORMAT", var.db_name, each.value.schema_name)`
52+
(Reference: [#265](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/265))
4753
- `snowflake_iam_user` (String) An AWS IAM user created for your Snowflake account. This user is the same for every external S3 stage created in your account.
4854
- `storage_integration` (String) Specifies the name of the storage integration used to delegate authentication responsibility for external cloud storage to a Snowflake identity and access management (IAM) entity.
4955
- `tag` (Block List, Deprecated) Definitions of a tag to associate with the resource. (see [below for nested schema](#nestedblock--tag))

0 commit comments

Comments
 (0)