因此,我一直在尝试通过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.
发布评论
评论(1)
这里有同样的错误,并在雪花的文档中发现:
Got the same error here and found in Snowflake's documentation that:
https://docs.snowflake.com/en/sql-reference/sql/alter-api-integration#usage-notes