eb create can't see Unable to assign role, needs to verify that you have permission to pass this role: aws-elasticbeanstalk-service-role

huangapple go评论70阅读模式
英文:

eb create can't see Unable to assign role, needs to verify that you have permission to pass this role: aws-elasticbeanstalk-service-role

问题

我有一个Node应用程序,想要将其上传到EB(Elastic Beanstalk)上。在运行eb init并创建应用程序后,尝试运行eb create时出现以下错误:

警告:IAM权限不足。无法确定实例配置文件'aws-elasticbeanstalk-ec2-role'是否存在,假定它存在。
创建应用程序版本存档"app-230218_020058149734"。
将testEBUdg/app-230218_020058149734.zip上传到S3。这可能需要一些时间。
上传完成。
环境详情:testEBUdg-dev
  应用程序名称:testEBUdg
  区域:us-east-1
  部署版本:app-230218_020058149734
  环境ID:e-spw6eyzmpe
  平台:arn:aws:elasticbeanstalk:us-east-1::platform/Node.js 14运行在64位Amazon Linux 2/5.6.4上
  层:WebServer-Standard-1.0
  CNAME:testEBUdg-dev.us-east-1.elasticbeanstalk.com
  更新时间:2023-02-18 00:01:36.993000+00:00
打印状态:
2023-02-18 00:01:35    信息    createEnvironment正在启动。
2023-02-18 00:01:37    信息    使用elasticbeanstalk-us-east-1-xxxxxxxxxx作为Amazon S3环境数据存储桶。
2023-02-18 00:01:38    错误    无法分配角色。请验证您是否具有通过此角色的权限:aws-elasticbeanstalk-service-role。
2023-02-18 00:01:38    错误    无法启动环境。
错误:ServiceError - 无法启动环境。

权限策略

图片链接

英文:

I have a node app want to upload it on EB.
after running eb init and create the application, tried to eb create I got this

WARNING: Insufficient IAM privileges. Unable to determine if instance profile 'aws-elasticbeanstalk-ec2-role' exists, assuming that it exists.
Creating application version archive "app-230218_020058149734".
Uploading testEBUdg/app-230218_020058149734.zip to S3. This may take a while.
Upload Complete.
Environment details for: testEBUdg-dev
  Application name: testEBUdg
  Region: us-east-1
  Deployed Version: app-230218_020058149734
  Environment ID: e-spw6eyzmpe
  Platform: arn:aws:elasticbeanstalk:us-east-1::platform/Node.js 14 running on 64bit Amazon Linux 2/5.6.4
  Tier: WebServer-Standard-1.0
  CNAME: testEBUdg-dev.us-east-1.elasticbeanstalk.com
  Updated: 2023-02-18 00:01:36.993000+00:00
Printing Status:
2023-02-18 00:01:35    INFO    createEnvironment is starting.
2023-02-18 00:01:37    INFO    Using elasticbeanstalk-us-east-1-xxxxxxxxxx as Amazon S3 storage bucket for environment data.
2023-02-18 00:01:38    ERROR   Unable to assign role. Please verify that you have permission to pass this role: aws-elasticbeanstalk-service-role.
2023-02-18 00:01:38    ERROR   Failed to launch environment.
ERROR: ServiceError - Failed to launch environment.

Permissions policies

答案1

得分: 1

看起来 AWS 凭据尚未配置,因此您需要使用 aws configure 进行设置,并确保用户具有适当的权限,然后执行 eb init

英文:

It looks like the aws credentials were not configured, so you need to set them up using aws configure and the user need to have the appropriate permission and then perform eb init.

huangapple
  • 本文由 发表于 2023年2月18日 08:18:14
  • 转载请务必保留本文链接:https://go.coder-hub.com/75490331.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定