- 最新
- 最多得票
- 最多評論
Hello
Thank you for contacting AWS premium support.
I understand that you after you updated a database outside of beanstalk environment, you are unable to update the environment and getting below error :
——
ERROR Updating RDS database named: aa11rysxnzln31k failed Reason: Invalid storage size for engine name postgres and storage type standard: 10 (Service: Rds, Status Code: 400, Request ID: xxx) 2022-10-21 17:32:04 UTC-0700
——
Since the RDS Database has been modified outside of the Elastic Beanstalk, the configuration data between Beanstalk environment and RDS database may be conflicting. As you might have already know, under the hood, Elastic Beanstalk uses CloudFormation to create and manage the application's various AWS resources. The changes that are made outside of CloudFormation can complicate stack update or deletion operations.
That being said, In order to troubleshoot this issue, you will have to set your Elastic Beanstalk's environment to match up as close as to what your RDS database instance is configured. Please set your storage size in your Elastic Beanstalk configuration to match the storage size of RDS database instance and save it, this should have Elastic Beanstalk effectively sync up with the RDS database instance. When it applies, CloudFormation should resize the database.
If the above approach does not work, then you can opt for any of the below two options :-
-
Create a snapshot of the existing RDS DB instance and then create a new Elastic Beanstalk environment using this snapshot.
-
Decouple the RDS instance from the environment. This is recommended for production environments because the lifecycle of the DB is not tied to the lifecycle of the environment [1].
For option 2, you could also refer to the documentation here [2] for detailed steps on how to decouple the RDS instance from the environment. For details on launching and connecting to external RDS instance, you can also refer to the details in the documentation here [3].
Having said this, in case you are still not able to update your environment, we would need to check the environment and account specific details in order to further troubleshoot the issue. Therefore, I would recommend you to raise a support case with us. You can use below link for the same : https://support.console.aws.amazon.com/support/home#/case/create
Thank you!
References:-
[1] https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/AWSHowTo.RDS.html [2] https://aws.amazon.com/premiumsupport/knowledge-center/decouple-rds-from-beanstalk/ [3] https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/rds-external-defaultvpc.html