无法提及自动扩展启动配置的安全组 ID。

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

Unable to mention the security group ID for auto scaling launch configuration

问题

已经设置了一个弹性Beanstalk,正在尝试进行EB部署,并且没有使用默认VPC。
根据aws文档(滚动到安全组),
它说如果不使用默认VPC,请提供安全组ID而不是安全组名称。

"如果您使用Amazon Virtual Private Cloud (Amazon VPC)与Elastic Beanstalk,以便在虚拟私有云(VPC)内启动您的实例,请指定安全组ID而不是安全组名称。"

在我的 .ebextensions/myapp.config 文件中,

aws:autoscaling:launchconfiguration:
    SecurityGroups: "security_group_id"

我仍然不断收到值不能为空的错误,看起来我没有以它期望的结构正确提及它,让我告诉你,我搜索了上述内容的结构和一些示例代码,但没有找到任何内容。

ERROR 更新自动缩放组的名称: awseb-e-5trtffbcqs-stack-AWSEBAutoScalingGroup-B8E7D8RYEMXL 失败原因: 您必须使用一个有效的完整启动模板。参数groupId的值()无效。该值不能为空(服务: AmazonAutoScaling; 状态码: 400; 错误代码: ValidationError; 请求ID: 8a8b46c3-8129-47ff-9e55-e087085c5a9c; 代理: null)
2023-06-29 12:10:40 错误 部署应用程序失败。

英文:

I have setup an Elastic Beanstalk, and I'm trying to do an EB deploy, and I'm not using default VPC.
As per the
aws docs here. (Scroll to security groups)
It says to mention the security group ID instead of security group names when not using default VPC

"If you use Amazon Virtual Private Cloud (Amazon VPC) with Elastic Beanstalk so that your instances are launched within a virtual private cloud (VPC), specify security group IDs instead of security group names."

In my .ebextensions/myapp.config

aws:autoscaling:launchconfiguration:
    SecurityGroups: "security_group_id"

Still I keep getting value cannot be empty, looks like I'm not properly mentioning it in the structure that it expects, and let me tell you that I searched for that structure, some example codes for the above, but couldn't find any.

ERROR Updating Auto Scaling group named: awseb-e-5trtffbcqs-stack-AWSEBAutoScalingGroup-B8E7D8RYEMXL failed Reason: You must use a valid fully-formed launch template. Value () for parameter groupId is invalid. The value cannot be empty (Service: AmazonAutoScaling; Status Code: 400; Error Code: ValidationError; Request ID: 8a8b46c3-8129-47ff-9e55-e087085c5a9c; Proxy: null)
2023-06-29 12:10:40 ERROR Failed to deploy application.

答案1

得分: 1

请注意在.ebextensions/myapp.config文件中检查ID是否正确。

确保安全组ID位于与您的EB应用程序相同的区域和VPC中。

.ebextensions/myapp.config文件中可能存在格式错误:配置文件中的aws:autoscaling:launchconfiguration:部分应正确缩进。

示例:

aws:autoscaling:launchconfiguration:
  SecurityGroups: sg-03a2de7e
英文:

Double-check the ID is correct in .ebextensions/myapp.config.

Make sure the Security Group ID is in the same region and the same VPC as your EB app.

There may be a formatting error in the .ebextensions/myapp.config file: The aws:autoscaling:launchconfiguration: section in the config file should be indented correctly.

Example:

aws:autoscaling:launchconfiguration:
  SecurityGroups: sg-03a2de7e

huangapple
  • 本文由 发表于 2023年6月29日 20:12:57
  • 转载请务必保留本文链接:https://go.coder-hub.com/76580937.html
匿名

发表评论

匿名网友

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

确定