使用 boto3 通过 VPC 内的 Lambda 启动 EMR 集群
我正在尝试使用使用Boto3和Python编写的AWS Lambda代码启动EMR群集。当没有VPC配置关联时,Lambda能够启动群集。但是,一旦添加VPC配置,它就无法启动群集并出现错误,并且没有提供任何错误消息。
我正在尝试在默认VPC内启动Lambda,并具有3个公共子网和一个默认的安全组。我已经检查了VPC中的路由表与Internet网关关联,并将其连接到VPC。
执行角色提供了对CloudWatch
ElasticMapreduce
和EC2
操作的完整访问。
在解决这个小学生错误方面的任何帮助将不胜感激。
I am trying to launch an EMR cluster using AWS Lambda code written with boto3 and python. The Lambda is able to launch the cluster when there is no VPC configuration associated it. However, as soon as I add the VPC config it fails to launch the cluster and errors out and does not provide any error message.
I am trying to launch the lambda inside a default VPC and it has 3 public subnets and a default security group. I have checked the route table in the VPC is associated with an internet gateway and it is attached to the VPC.
The execution role provides full access to the cloudwatch
elasticmapreduce
and ec2
actions.
Any help in resolving this school boy error will be much appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论