我正在尝试使用通过自制软件安装的aws cli和elasticbeanstalk cli将Ruby on Rails应用程序部署到AWS Elastic Beanstalk。
我已经通过eb init
命令在Elastic Beanstalk中创建了我的应用程序,然后使用以下命令尝试构建生产环境
eb create production -db -db.engine postgres
此命令成功构建了所需的某些资源,但在它尝试构建的第二个安全组上失败,该组是RDS实例(postgresql)所必需的。失败的输出如下:
Printing Status:
INFO: createEnvironment is starting.
INFO: Using elasticbeanstalk-us-east-1-060304732879 as Amazon S3 storage bucket for environment data.
INFO: Created security group named: sg-6df63b27
INFO: Created load balancer named: awseb-e-v-AWSEBLoa-SNYOVF7XI1O
INFO: Created security group named: awseb-e-vfpiydbe4p-stack-AWSEBSecurityGroup-7CUYEFRLYW20
INFO: Created Auto Scaling launch configuration named: awseb-e-vfpiydbe4p-stack-AWSEBAutoScalingLaunchConfiguration-PBAKQ91A7F1C
ERROR: Stack named 'awseb-e-vfpiydbe4p-stack' aborted operation. Current state: 'CREATE_FAILED' Reason: The following resource(s) failed to create: [AWSEBRDSDBSecurityGroup].
ERROR: Creating RDS database security group named: awseb-e-vfpiydbe4p-stack-awsebrdsdbsecuritygroup-1er5fh5espelw failed Reason: Either the resource does not exist, or you do not have the required permissions.
INFO: Launched environment: production. However, there were issues during launch. See event log for details.
还有其他人遇到此问题吗?我已仔细检查(并重置)了我的AWS凭据,并确保将我在IAM控制台中设置的唯一可用设置设置为AdministratorAccess
,并且我正在使用AWS Access和密钥设置该用户。
任何帮助将不胜感激!