Amazon web services 尝试将新文件添加到/etc文件夹时,AWS Elastic Beanstalk部署失败

Amazon web services 尝试将新文件添加到/etc文件夹时,AWS Elastic Beanstalk部署失败,amazon-web-services,amazon-ec2,amazon-elastic-beanstalk,amazon-cloudformation,amazon-rds,Amazon Web Services,Amazon Ec2,Amazon Elastic Beanstalk,Amazon Cloudformation,Amazon Rds,最近出现了一些问题,我试图通过添加一个/ebextensions/GZIP_config.config文件来添加GZIP压缩,然后在下面的/etc/httpd/conf.d/enable_mod_deflate.conf中创建一个文件,但是在运行部署管道时,我收到了以下错误: ERROR Service:AmazonCloudFormation, Message:Stack named 'xxx-e-xxxxx-stack' aborted operation. Current state:

最近出现了一些问题,我试图通过添加一个
/ebextensions/GZIP_config.config
文件来添加GZIP压缩,然后在下面的
/etc/httpd/conf.d/enable_mod_deflate.conf
中创建一个文件,但是在运行部署管道时,我收到了以下错误:

ERROR   Service:AmazonCloudFormation, Message:Stack named 'xxx-e-xxxxx-stack' aborted operation. Current state: 'UPDATE_ROLLBACK_IN_PROGRESS'  Reason: The following resource(s) failed to update: [AWSEBRDSDatabase]. 
ERROR   Updating RDS database named: xxxxxxxxx failed Reason: DB Security Groups can no longer be associated with this DB Instance.  Use VPC Security Groups instead.
ERROR   Failed to deploy application.
然后我删除了文件(
/ebextensions/gzip_config.config
)部署工作顺利,但没有任何gzip压缩

接下来,我尝试创建了一个
/ebextensions/gzip.conf
文件,其中包含gzip甜蜜的东西,然后在我的
/ebextensions/deploy.config
中添加了一个命令

  05_03_move_gzip_files:
    command: |
      sudo cp ./ebextensions/gzip.conf /etc/httpd/conf.d/enable_mod_deflate.conf
我试图部署应用程序,但一旦部署,就会出现可怕的错误

2020-10-19 11:54:15    ERROR   Service:AmazonCloudFormation, Message:Stack named 'xxx-e-xxxxx-stack' aborted operation. Current state: 'UPDATE_ROLLBACK_IN_PROGRESS'  Reason: The following resource(s) failed to update: [AWSEBRDSDatabase]. 
2020-10-19 11:54:15    ERROR   Updating RDS database named: xxxxxxxxx failed Reason: DB Security Groups can no longer be associated with this DB Instance.  Use VPC Security Groups instead.
2020-10-19 11:54:15    ERROR   Failed to deploy application.
在我删除命令
05\u 03\u move\u gzip\u files
后,部署工作顺利,但没有任何gzip

我如何才能修复此错误?仅当尝试将文件添加到/etc文件夹时才会发生此错误


谢谢大家!

使用
cp
命令获得解决方案了吗?