简体   繁体   English

Serverless Cube.js - 没有消息发布到 SNS

[英]Serverless Cube.js - No messages published to SNS

Trying to turn a containerized Cube.js deployment into a serverless one.试图将容器化的 Cube.js 部署转变为无服务器部署。 I'm getting Continue wait on every API call, and I notice the cubejsProcess lambda is never invoked.我正在继续等待每个 API 调用,我注意到cubejsProcess lambda 从未被调用。 I checked SNS reachability by (successfully) publishing a message to it using the AWS SDK in the cubejs lambda.我通过使用cubejs lambda 中的 AWS SDK (成功)向其发布消息来检查 SNS 可访问性。 The cubejsProcess does get invoked with this inserted message.使用此插入的消息确实调用了cubejsProcess What might be preventing cubejs from publishing messages to SNS?是什么阻止cubejs向 SNS 发布消息?

This is similar to this question , however, connectivity to SNS has been verified in this case.这与此问题类似,但是在这种情况下已验证了与 SNS 的连接性。

I'd check IAM permissions to see if the cubejs Lambda's role.我会检查 IAM 权限以查看cubejs Lambda 的角色。 Does the role allow making requests to SNS?该角色是否允许向 SNS 发出请求?

Another thing that could be causing the issue is if the cubejs Lambda is in a VPC with no Internet access;可能导致问题的另一件事是,如果cubejs Lambda 位于无法访问 Internet 的 VPC 中; calling any AWS API endpoint would fail since they all require an Internet connection.调用任何 AWS API 端点都会失败,因为它们都需要 Internet 连接。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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