[英]AWS - Errors - Updating Auto Scaling group, Amazon CloudFormation, Failed to deploy configuration
Within the AWS -> Elastic Beanstalk (Dashboard) -> Configuration -> Software Configuration -> Environment Properties在 AWS -> Elastic Beanstalk(仪表板) -> 配置 -> 软件配置 -> 环境属性
When I try to add & configure my "Environment Properties" from the config file ".env.default" of my node.js application which is as follows:当我尝试从我的 node.js 应用程序的配置文件“.env.default”添加和配置我的“环境属性”时,如下所示:
#.env.default
# General settings
TIMEZONE=Europe/Amsterdam
# --------
# Debug-related settings
LOG_LEVEL_CONSOLE=info
LOG_LEVEL_FILE=info
ENABLE_FILE_LOGGING=true
# Whether the local log directory (./logs/) should be preferred over /var/log/
LOG_FILE_PREFER_LOCAL=false
# Override the default logging location (/var/log/ or ./logs/)
# FORCE_LOG_LOCATION=./some-other-directory/
# /../../log/nodejs/
# --------
# Crash-related settings
MAX_CONSECUTIVE_CRASHES=5
CONSECUTIVE_CRASH_RESET_MS=5000
# --------
# Settings relating to remote API access
ENABLE_REMOTE_ACCESS=true
ENABLE_WHITELIST=true
HOST_API=true
HOST_WEB_INTERFACE=true
LISTEN_PORT=8081
JWT_SECRET=ItsASecretToEverybodyMAHBOI
# LISTEN_PORT=1903 backup
#INTERNAL_LISTEN_PORT=1939 backup
# --------
# Settings relating to internal access
INTERNAL_LISTEN_PORT=8083
# --------
# Database-related settings
DATABASE_HOST=acc-sc-3.crmhqy2lzjw4.eu-west-1.rds.amazonaws.com
DATABASE_NAME=acc_schedule_center_3
DATABASE_USER=sc_3
DATABASE_PASS=yCFKIqzLcBIBt1wYj4Qn
MAX_IDLE_TIME=28800
Environment Properties - First Side环境属性 - 第一面
Environment Properties - Second Side环境属性 - 第二面
Ignore the data that is listed inside the "Property Name" & "Property Value", cause they were from the previous configuration.忽略“属性名称”和“属性值”中列出的数据,因为它们来自以前的配置。
The Core Error, I'm facing at the moment is as follows:我现在面临的核心错误如下:
ERROR #1错误 #1
Service:AmazonCloudFormation, Message:Stack named 'awseb-e-4e98c2gukw-stack' aborted operation.
服务:AmazonCloudFormation,消息:名为“awseb-e-4e98c2gukw-stack”的堆栈中止操作。 Current state: 'UPDATE_ROLLBACK_IN_PROGRESS' Reason: null
当前状态:'UPDATE_ROLLBACK_IN_PROGRESS' 原因:空
ERROR #2错误 #2
Updating Auto Scaling group named: awseb-e-4e98c2gukw-stack-AWSEBAutoScalingGroup-1GR8E4SU6QZGJ failed Reason: Template error: DBInstance aa153clv2zourf2 doesn't exist
更新名为:awseb-e-4e98c2gukw-stack-AWSEBAutoScalingGroup-1GR8E4SU6QZGJ 的 Auto Scaling 组失败原因:模板错误:DBInstance aa153clv2zourf2 不存在
ERROR #3错误 #3
Failed to deploy configuration.
无法部署配置。
I'm fairly new, or can call me a novice coder or DevOps in general, but would like to know if anyone knows the solution for these errors?我是相当新的,或者可以称我为新手编码员或一般的 DevOps,但想知道是否有人知道这些错误的解决方案?
Thanks in advance everyone!提前谢谢大家!
Kind Regards,亲切的问候,
Doga土加
I was able to fix my problem by adding some IAM policies to the EBS user.我能够通过向 EBS 用户添加一些 IAM 策略来解决我的问题。
I had only the AdministratorAccess-AWSElasticBeanstalk policy and after I added the AWSElasticBeanstalkRoleRDS policy it worked.我只有 AdministratorAccess-AWSElasticBeanstalk 策略,在我添加 AWSElasticBeanstalkRoleRDS 策略后它起作用了。
I had pretty much the same issue.我有几乎相同的问题。 For me it was the permission level of the IAM user that I was using for EB.
对我来说,这是我用于 EB 的 IAM 用户的权限级别。 It had EB Full permissions, but I needed to give it permissions to access other services as well.
它具有 EB Full 权限,但我还需要授予它访问其他服务的权限。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.