小编Ari*_*ose的帖子

通过AWS Lambda启动EC2实例

我试图在AWS上创建一个lambda函数来启动和停止EC2实例,但是它给出了以下错误

botocore.exceptions.ClientError: An error occurred (UnauthorizedOperation) when calling the StartInstances operation: You are not authorized to perform this operation.
Run Code Online (Sandbox Code Playgroud)

我应采取哪些步骤来阻止此错误?我不是开发人员,只是试图通过EC2运行一些ML模型.我阅读了有关创建IAM角色的内容,我使用完全EC2访问权限,但我不确定如何在lambda函数中使用相同的内容.任何人都可以指导我吗?

amazon-ec2 amazon-web-services aws-lambda aws-iam

0
推荐指数
1
解决办法
105
查看次数