错误:“ SQL汇编错误:无效的值[AWS_PRIVATE_API_GATEWAY]参数; api_provider;

发布于 2025-01-22 11:39:14 字数 1354 浏览 2 评论 0 原文

因此,我一直在尝试通过AWS API网关实现外部UDF,以用于雪花。我遇到了一个错误,但我在网上任何地方都没有看到过记录的错误。尝试使用具有私有端点的API网关创建API集成时发生错误:

CREATE OR REPLACE API INTEGRATION LAMBDA_API
API_PROVIDER = aws_private_api_gateway
API_AWS_ROLE_ARN = 'arn:aws:iam::************:role/****'
[API_KEY = '****************************************']
API_ALLOWED_PREFIXES = ('https://*******.execute-api.us-****-*.amazonaws.com/******')
ENABLED = true;

我尝试提供可选的争论API_KEY,但也没有运气。我本质上遵循列出的步骤在这里(更具体地说,在这里)逐字化。

是否有人遇到此错误,或者有人知道我可以在哪里了解有关此参数的更多信息?

如果我将API_PROVIDER指定为“ AWS_API_GATEWAY”,则该代码确实会执行,但是我们当前的体系结构需要VPC配置。

编辑1-确切的错误(也在标题中):

SQL compilation error: invalid value [aws_private_api_gateway] for parameter 'API_PROVIDER'

编辑2-我们注意到文档为了更改API集成,AWS_PRIVATE_API_GATEWAWE不需要AWS角色ARN,但是将其从创建语句中删除并不能解决问题。

So I have been trying to implement an external UDF for use in Snowflake through AWS API Gateway. I'm running into an error that I have not seen documented anywhere online. The error occurs when trying to create an api integration using api gateway with a private endpoint:

CREATE OR REPLACE API INTEGRATION LAMBDA_API
API_PROVIDER = aws_private_api_gateway
API_AWS_ROLE_ARN = 'arn:aws:iam::************:role/****'
[API_KEY = '****************************************']
API_ALLOWED_PREFIXES = ('https://*******.execute-api.us-****-*.amazonaws.com/******')
ENABLED = true;

I have tried providing the optional arguement API_KEY, but no luck with that either. I essentially followed the steps listed here (more specifically, here) verbatim.

Has anyone encountered this error, or does anyone know where I might be able to learn more about this parameter?

The code does execute if I specify API_PROVIDER as 'aws_api_gateway', but our current architecture requires a vpc configuration.

EDIT 1 - The exact error (also in title):

SQL compilation error: invalid value [aws_private_api_gateway] for parameter 'API_PROVIDER'

EDIT 2 - We noticed that the documentation for altering the API integration mentions that an AWS role ARN is not required for aws_private_api_gateway, removing this from the creation statement did not solve the issue however.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

桃酥萝莉 2025-01-29 11:39:14

这里有同样的错误,并在雪花的文档中发现:

无法更改API_PROVIDER

Got the same error here and found in Snowflake's documentation that:

The API_PROVIDER cannot be changed

https://docs.snowflake.com/en/sql-reference/sql/alter-api-integration#usage-notes

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文