{"id":6298,"date":"2022-10-29T06:54:15","date_gmt":"2022-10-29T06:54:15","guid":{"rendered":"https:\/\/pariswells.com\/blog\/?p=6298"},"modified":"2022-10-29T06:54:15","modified_gmt":"2022-10-29T06:54:15","slug":"aws-elastic-beanstalk-is-in-an-invalid-state-for-this-operation-must-be-ready","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/research\/aws-elastic-beanstalk-is-in-an-invalid-state-for-this-operation-must-be-ready","title":{"rendered":"AWS &#8211; Elastic Beanstalk &#8211; is in an invalid state for this operation. Must be Ready."},"content":{"rendered":"<p>My Usual update of my elastic beanstalk didn&#8217;t work and I was alerted :\u00a0<\/p><ul><li>Rollback of environment ttsweb1-env failed. Reason: The following resource(s) failed to update: [AWSEBRDSDatabase].<\/li><li>Address the preceding error and then start another environment update to complete the rollback.<\/li><li>Environment health has transitioned from Info to Degraded. Incorrect application version found on 1 out of 2 instances. Expected version &#8220;xxxxxxxx&#8221; (deployment 31). Configuration update failed 33 seconds ago and took 16 minutes.<\/li><\/ul><p>Tried :\u00a0<\/p><ol><li>Go to your CloudFormantion and manually do the Rollback https:\/\/eu-west-1.console.aws.amazon.com\/cloudformation\/home?region=eu-west-1#\/stacks?filteringStatus=active&amp;filteringText=&amp;viewNested=true&amp;hideStacks=false , then\u00a0Then Manually perform the stack update<\/li><li>Restarted EC2 Instance of Elastic Beanstalk<\/li><li>Go to AutoScalingGroups ,<a href=\"https:\/\/us-east-1.console.aws.amazon.com\/ec2\/home?region=us-east-1#AutoScalingGroups:\">https:\/\/us-east-1.console.aws.amazon.com\/ec2\/home?region=us-east-1#AutoScalingGroups:<\/a> Dropped<\/li><\/ol><p>Change your Elastic Group for your Beanstalk down to 0\u00a0<\/p><p id=\"vwDhZfZ\"><img loading=\"lazy\" decoding=\"async\" width=\"421\" height=\"483\" class=\"alignnone size-full wp-image-6299  img-responsive\" src=\"http:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/10\/img_635ccc071b550.png\" alt=\"\" srcset=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/10\/img_635ccc071b550.png 421w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/10\/img_635ccc071b550-261x300.png 261w\" sizes=\"auto, (max-width: 421px) 100vw, 421px\" \/><\/p><p>This will shutdown your EC2 Instance again then increase to one<\/p><p>&nbsp;<\/p><p>In the end I had to <a href=\"https:\/\/aws.amazon.com\/premiumsupport\/knowledge-center\/decouple-rds-from-beanstalk\/\">decouple<\/a> my RDS DB and spin up a new application and change my DNS over to the new server<\/p><p>In future now my database is decoupled I can rebuild my instance\u00a0<\/p><p>&nbsp;<\/p>","protected":false},"excerpt":{"rendered":"<p>My Usual update of my elastic beanstalk didn&#8217;t work and I was alerted :\u00a0Rollback of environment ttsweb1-env failed. Reason: The following resource(s) failed to update: [AWSEBRDSDatabase].Address the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[2242,4055,3752,4054],"class_list":["post-6298","post","type-post","status-publish","format-standard","hentry","category-research","tag-aws","tag-awsebrdsdatabase","tag-elastic-beanstalk","tag-is-in-an-invalid-state-for-this-operation-must-be-ready"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/6298","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=6298"}],"version-history":[{"count":1,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/6298\/revisions"}],"predecessor-version":[{"id":6300,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/6298\/revisions\/6300"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=6298"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=6298"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=6298"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}