Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Amazon elastic beanstalk Elastic Beanstalk:将DB安全组迁移到VPC安全组_Amazon Elastic Beanstalk_Amazon Rds_Amazon Vpc_Vpc_Aws Security Group - Fatal编程技术网

Amazon elastic beanstalk Elastic Beanstalk:将DB安全组迁移到VPC安全组

Amazon elastic beanstalk Elastic Beanstalk:将DB安全组迁移到VPC安全组,amazon-elastic-beanstalk,amazon-rds,amazon-vpc,vpc,aws-security-group,Amazon Elastic Beanstalk,Amazon Rds,Amazon Vpc,Vpc,Aws Security Group,在尝试部署应用程序时,我最近遇到以下错误: 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: Updatin

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

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.                                

如何将DB安全组切换到VPC安全组?使用Elastic Beanstalk控制台的步骤将不胜感激。

也有同样的问题,但可以通过执行以下操作来解决

  • 从RDS控制台创建了一个RDS db实例
  • 创建了实例的快照
  • 从configuration/database下的Elastic Beanstalk控制台,使用实例创建RDS db
  • 一旦EBS创建了新的RDS db实例,inn配置/软件将添加db环境属性

  • 我希望它能帮助您解决这个问题。

    对于通过谷歌到达的任何人,以下是您如何通过CloudFormation实现的: 官方文件的最底部有一个例子

    SecurityGroup:
    类型:“AWS::EC2::SecurityGroup”
    特性:
    VpcId:
    群组描述:解释你的SG
    SecurityGroupIngress:
    -描述:入口描述
    CidrIp:10.214.0.0/16
    IpProtocol:tcp
    发件人:3306
    托波特:3306
    RDSDb:
    类型:“AWS::RDS::DBInstance”
    特性:
    VPC安全组:
    -Fn::GetAtt:
    -证券集团
    -GroupId
    
    我也有同样的问题,我删除了一个db安全组,但这对我的事业没有帮助。我希望有人回答一些有见地的评论或回答!
    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