gpt4 book ai didi

amazon-elastic-beanstalk - Elastic Beanstalk : Migrate DB Security Group to VPC Security Group

转载 作者:行者123 更新时间:2023-12-04 08:44:11 27 4
gpt4 key购买 nike

在尝试部署我的应用程序时,我最近收到以下错误:

ERROR: Service:AmazonCloudFormation, Message:Stack named
'awseb-e-123-stack' aborted operation. Current state: 'UPDATE_ROLLBACK_IN_PROGRESS'
Reason: The following resource(s) failed to update: [AWSEBRDSDatabase].
ERROR: Updating RDS database named: abcdefg12345 failed
Reason: DB Security Groups can no longer be associated
with this DB Instance. Use VPC Security Groups instead.
ERROR: Failed to deploy application.

如何将数据库安全组切换到 VPC 安全组?非常感谢使用 Elastic Beanstalk 控制台的步骤。

最佳答案

对于通过 Google 到达的任何人,以下是通过 CloudFormation 实现的方法:
官方文档包含一个示例,在最底部 https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.RDSSecurityGroups.html#Overview.RDSSecurityGroups.DeleteDBVPCGroups

SecurityGroup:
Type: "AWS::EC2::SecurityGroup"
Properties:
VpcId: <vpc_id>
GroupDescription: Explain your SG
SecurityGroupIngress:
- Description: Ingress description
CidrIp: 10.214.0.0/16
IpProtocol: tcp
FromPort: 3306
ToPort: 3306
RDSDb:
Type: 'AWS::RDS::DBInstance'
Properties:
VPCSecurityGroups:
- Fn::GetAtt:
- SecurityGroup
- GroupId

关于amazon-elastic-beanstalk - Elastic Beanstalk : Migrate DB Security Group to VPC Security Group,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51164140/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com