提问人:Muhammad Usman 提问时间:11/13/2023 更新时间:11/13/2023 访问量:49
无法找出使用 Elastic Beanstalk CLI 启动 Flask 应用程序的正确策略
Can't figure out the correct policy to initiate a Flask app with Elastic Beanstalk CLI
问:
我有一个 Flask 应用程序。我安装了pip和软件包。我在 CLI 中运行了命令,并为我创建的用户提供了凭据。awscli
awsebcli
aws configure
根据此链接,该策略已停用,我认为现在我应该使用该策略。AWSElasticBeanstalkFullAccess
AdministratorAccess-AWSElasticBeanstalk
因此,我创建了一个 IAM 用户组。给了它政策。创建了也称为 的 IAM 用户。已将组附加到用户。生成密钥并在输入后输入EB
AdministratorAccess-AWSElasticBeanstalk
EB
EB
EB
aws configure
但是当我尝试运行该命令时,出现错误。我错过了什么?eb init -p python-3.11 DukanApp
ERROR: NotAuthorizedError - Operation Denied. Access Denied
下面我列出了搜索“ElasticBeanstalk”时获得的所有策略:
AdministratorAccess-AWSElasticBeanstalk
AWSElasticBeanstalkCustomPlatformforEC2Role
AWSElasticBeanstalkEnhancedHealth
AWSElasticBeanstalkMaintenance
AWSElasticBeanstalkManagedUpdatesCustomerRolePolicy
AWSElasticBeanstalkManagedUpdatesServiceRolePolicy
AWSElasticBeanstalkMulticontainerDocker
AWSElasticBeanstalkReadOnly
AWSElasticBeanstalkRoleCore
AWSElasticBeanstalkRoleCWL
AWSElasticBeanstalkRoleECS
AWSElasticBeanstalkRoleRDS
AWSElasticBeanstalkRoleSNS
AWSElasticBeanstalkRoleWorkerTier
AWSElasticBeanstalkService
AWSElasticBeanstalkServiceRolePolicy
AWSElasticBeanstalkWebTier
AWSElasticBeanstalkWorkerTier
答: 暂无答案
评论
aws sts get-caller-identity
AmazonEC2FullAccess
eb init --debug