【问题标题】:How can I add one more storage_allowed_location in Snowflake storage integration如何在雪花存储集成中再添加一个 storage_allowed_location
【发布时间】:2022-01-21 21:38:39
【问题描述】:

我创建了一个 Snowflake 存储集成,如下所示:

create or replace storage integration s3_int
    type = external_stage
    storage_provider = s3
    enabled = TRUE
    storage_aws_role_arn = 'arn:aws:iam::xxx'
    storage_allowed_locations = ('S3://location1', 
                                 's3://location2',
                                 's3://location4',
                                 's3://location5',
                                 's3://location6',
                                 's3://location7',
                                 's3://location8');

现在我想再添加 2 个位置,我知道我可以使用 SET storage_allowed_locations,如下所示:

ALTER STORAGE INTEGRATION s3_int 
SET storage_allowed_locations = ('S3://location1', 
                                 's3://location2',
                                 's3://location4',
                                 's3://location5',
                                 's3://location6',
                                 's3://location7',
                                 's3://location8',
                                 's3://location9',
                                 's3://location10');

但问题是,随着时间的推移,我将在这个storage_allowed_location 列表中添加越来越多的位置。我是否总是必须提供整个位置列表并在其末尾添加新位置?它最终会变得超级漫长和烦人。您知道是否有其他方法可以在现有位置列表中添加/追加新位置?

【问题讨论】:

    标签: snowflake-cloud-data-platform


    【解决方案1】:

    此时,是的,存储位置必须与现有位置一起添加。

    【讨论】:

      猜你喜欢
      • 2021-08-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-06-25
      • 2020-12-10
      • 2022-08-17
      • 1970-01-01
      • 2022-06-10
      相关资源
      最近更新 更多