{"id":3543,"date":"2016-06-23T20:45:27","date_gmt":"2016-06-23T20:45:27","guid":{"rendered":"http:\/\/www.gubatron.com\/blog\/?p=3543"},"modified":"2017-10-19T03:45:27","modified_gmt":"2017-10-19T03:45:27","slug":"tutorial-how-to-pause-an-aws-elastic-beanstalk-environment-using-the-dashboard","status":"publish","type":"post","link":"https:\/\/www.gubatron.com\/blog\/tutorial-how-to-pause-an-aws-elastic-beanstalk-environment-using-the-dashboard\/","title":{"rendered":"[TUTORIAL] HOW TO PAUSE AN AWS ELASTIC BEANSTALK ENVIRONMENT USING THE DASHBOARD"},"content":{"rendered":"<p>So you have set up a test elastic beanstalk environment because you don&#8217;t want to put at risk your production elastic bean.<br \/>\nYou don&#8217;t want to pay for the time you&#8217;re not using it, and there&#8217;s no freaking &#8220;Pause Environment&#8221; option.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3551 size-medium\" src=\"https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2016\/06\/Screen-Shot-2016-06-23-at-1.54.48-PM-219x300.png?resize=219%2C300\" alt=\"aws-elasticbean-no-pause-option\" width=\"219\" height=\"300\" srcset=\"https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2016\/06\/Screen-Shot-2016-06-23-at-1.54.48-PM.png?resize=219%2C300&amp;ssl=1 219w, https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2016\/06\/Screen-Shot-2016-06-23-at-1.54.48-PM.png?w=486&amp;ssl=1 486w\" sizes=\"auto, (max-width: 219px) 100vw, 219px\" \/><\/p>\n<p>all you can do is &#8220;Terminate Environment&#8221;? but then to crete the damn environment it takes forever to configure (if you&#8217;re using the dashboard), so we don&#8217;t want to do that.<\/p>\n<p>If you try to terminate the associated EC2 instance, the Elastic Beanstalk environment will automatically provision a new machine for you, so that doesn&#8217;t work. What do you do?<\/p>\n<p>Open the Elastic Bean environment you want to pause and go to &#8220;Configuration&#8221;<br \/>\n<img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3552 size-medium\" src=\"https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2016\/06\/Screen-Shot-2016-06-23-at-1.55.02-PM-300x105.png?resize=300%2C105\" alt=\"Screen Shot 2016-06-23 at 1.55.02 PM\" width=\"300\" height=\"105\" srcset=\"https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2016\/06\/Screen-Shot-2016-06-23-at-1.55.02-PM.png?resize=300%2C105&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2016\/06\/Screen-Shot-2016-06-23-at-1.55.02-PM.png?w=302&amp;ssl=1 302w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>On the Scaling card, click on the Gear icon to change its settings<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-3553 aligncenter\" src=\"https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2016\/06\/Screen-Shot-2016-06-23-at-1.55.11-PM-300x179.png?resize=300%2C179\" alt=\"Screen Shot 2016-06-23 at 1.55.11 PM\" width=\"300\" height=\"179\" srcset=\"https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2016\/06\/Screen-Shot-2016-06-23-at-1.55.11-PM.png?resize=300%2C179&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2016\/06\/Screen-Shot-2016-06-23-at-1.55.11-PM.png?w=768&amp;ssl=1 768w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>in the &#8220;Auto Scaling&#8221; options, set the &#8220;Minimum instance count&#8221; to 0, and the &#8220;Maximum instance count&#8221; to 0<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-3554 aligncenter\" src=\"https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2016\/06\/Screen-Shot-2016-06-23-at-1.55.56-PM-300x106.png?resize=300%2C106\" alt=\"Screen Shot 2016-06-23 at 1.55.56 PM\" width=\"300\" height=\"106\" srcset=\"https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2016\/06\/Screen-Shot-2016-06-23-at-1.55.56-PM.png?resize=300%2C106&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2016\/06\/Screen-Shot-2016-06-23-at-1.55.56-PM.png?resize=768%2C272&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2016\/06\/Screen-Shot-2016-06-23-at-1.55.56-PM.png?resize=1024%2C362&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2016\/06\/Screen-Shot-2016-06-23-at-1.55.56-PM.png?w=1170&amp;ssl=1 1170w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>Hit &#8220;Apply&#8221;<br \/>\n<img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-3555 aligncenter\" src=\"https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2016\/06\/Screen-Shot-2016-06-23-at-1.56.03-PM-300x134.png?resize=300%2C134\" alt=\"Screen Shot 2016-06-23 at 1.56.03 PM\" width=\"300\" height=\"134\" srcset=\"https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2016\/06\/Screen-Shot-2016-06-23-at-1.56.03-PM.png?resize=300%2C134&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2016\/06\/Screen-Shot-2016-06-23-at-1.56.03-PM.png?w=404&amp;ssl=1 404w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>Wait for your environment to apply the new configuration<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-3556 aligncenter\" src=\"https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2016\/06\/Screen-Shot-2016-06-23-at-1.56.15-PM-300x147.png?resize=300%2C147\" alt=\"Screen Shot 2016-06-23 at 1.56.15 PM\" width=\"300\" height=\"147\" srcset=\"https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2016\/06\/Screen-Shot-2016-06-23-at-1.56.15-PM.png?resize=300%2C147&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2016\/06\/Screen-Shot-2016-06-23-at-1.56.15-PM.png?w=608&amp;ssl=1 608w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Now your health status has switched to gray. It&#8217;s now paused and you won&#8217;t be paying for the test ec2 instance while you&#8217;re not working on it.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-3558 aligncenter\" src=\"https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2016\/06\/Screen-Shot-2016-06-23-at-1.58.11-PM-1-300x150.png?resize=300%2C150\" alt=\"Screen Shot 2016-06-23 at 1.58.11 PM\" width=\"300\" height=\"150\" srcset=\"https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2016\/06\/Screen-Shot-2016-06-23-at-1.58.11-PM-1.png?resize=300%2C150&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2016\/06\/Screen-Shot-2016-06-23-at-1.58.11-PM-1.png?resize=768%2C383&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2016\/06\/Screen-Shot-2016-06-23-at-1.58.11-PM-1.png?w=818&amp;ssl=1 818w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>If you are curious and you check the\u00a0ec2 instances associated to the environment, it\/them should be terminated now, but now the environment won&#8217;t try to provision new ones.<br \/>\n<img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-3559 aligncenter\" src=\"https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2016\/06\/thanks-bow-300x156.gif?resize=300%2C156\" alt=\"thanks-bow\" width=\"300\" height=\"156\" \/><\/p>\n<p>Savings in your pocket. Cheers.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So you have set up a test elastic beanstalk environment because you don&#8217;t want to put at risk your production elastic bean. You don&#8217;t want to pay for the time you&#8217;re not using it, and there&#8217;s no freaking &#8220;Pause Environment&#8221; option. all you can do is &#8220;Terminate Environment&#8221;? but then to crete the damn environment [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[15,36],"tags":[1522,1156,1521,1520,1519,1523,1024],"class_list":["post-3543","post","type-post","status-publish","format-standard","hentry","category-code","category-howto-2","tag-amazon-cloud","tag-aws","tag-aws-cloud","tag-elastic-bean","tag-elastic-beanstalk","tag-pause-environment","tag-tutorial"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p5Unzf-V9","jetpack-related-posts":[{"id":3164,"url":"https:\/\/www.gubatron.com\/blog\/how-to-have-a-play-framework-app-autostart-during-boot-on-elastic-beanstalk-centos-ec2-instances\/","url_meta":{"origin":3543,"position":0},"title":"How to have a Play framework app autostart during boot on Elastic Beanstalk CentOS ec2 instances","author":"gubatron","date":"September 27, 2013","format":false,"excerpt":"So you've created an Elastic Beanstalk environment, you have a play framework distribution which you've created using play dist (either on your local environment, or right there on the server, whatever you prefer) play dist outputs a my-app-1.0.zip file which has a self-contained version of your app with all the\u2026","rel":"","context":"In &quot;Code&quot;","block_context":{"text":"Code","link":"https:\/\/www.gubatron.com\/blog\/category\/code\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":4073,"url":"https:\/\/www.gubatron.com\/blog\/remotely-code-signing-windows-apps-using-aws-virtual-servers-and-a-physical-usb-key\/","url_meta":{"origin":3543,"position":1},"title":"Remotely Code Signing Windows Apps Using AWS Virtual Servers and a Physical USB Key","author":"gubatron","date":"April 25, 2024","format":false,"excerpt":"As a developer, you may find yourself in a situation where you need to code sign your Windows applications using a physical USB signing key, but you don't have direct access to a Windows machine. Fortunately, with the power of cloud computing and remote desktop technology, you can set up\u2026","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2024\/04\/GMBy5ZwWIAAnizc.jpeg?fit=1024%2C1024&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2024\/04\/GMBy5ZwWIAAnizc.jpeg?fit=1024%2C1024&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2024\/04\/GMBy5ZwWIAAnizc.jpeg?fit=1024%2C1024&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2024\/04\/GMBy5ZwWIAAnizc.jpeg?fit=1024%2C1024&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":3213,"url":"https:\/\/www.gubatron.com\/blog\/aws-troubleshooting-how-to-fix-a-broken-ebs-volume-bad-superblock-on-xfs\/","url_meta":{"origin":3543,"position":2},"title":"AWS troubleshooting: how to fix a broken EBS volume (bad superblock on xfs)","author":"gubatron","date":"January 19, 2014","format":false,"excerpt":"As great as EBS volumes are on Amazon Web Services, they can break and not ever mount again, even though your data could still be there intact, a simple corruption on the filesystem structure can cause a lot of damage. On this post I teach you how to move all\u2026","rel":"","context":"In &quot;Geeklife&quot;","block_context":{"text":"Geeklife","link":"https:\/\/www.gubatron.com\/blog\/category\/geeklife\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2014\/01\/car-longshot2.jpg?fit=720%2C482&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2014\/01\/car-longshot2.jpg?fit=720%2C482&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2014\/01\/car-longshot2.jpg?fit=720%2C482&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2014\/01\/car-longshot2.jpg?fit=720%2C482&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":2747,"url":"https:\/\/www.gubatron.com\/blog\/s3cmd-how-to-put-files-with-expiration-on-s3cloudfront-aws-s3\/","url_meta":{"origin":3543,"position":3},"title":"s3cmd &#8211; how to put files with expiration on S3\/CloudFront #AWS #s3","author":"gubatron","date":"May 23, 2012","format":false,"excerpt":"[bash]s3cmd put --add-header \"Cache-Control: 604800\" -P .\/* s3:\/\/mybucket.com\/path\/to\/files\/[\/bash] If you have your CloudFront Distribution pointed to your S3 bucket, files will expire after the number of seconds specified in Cache-Control have passed. You will need the wonderful s3cmd tool","rel":"","context":"In \"aws\"","block_context":{"text":"aws","link":"https:\/\/www.gubatron.com\/blog\/tag\/aws\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3977,"url":"https:\/\/www.gubatron.com\/blog\/how-to-resize-aws-ec2-ebs-root-partition-without-rebooting-in-3-steps\/","url_meta":{"origin":3543,"position":4},"title":"How to resize AWS ec2 ebs root partition without rebooting in 3 steps","author":"gubatron","date":"September 14, 2022","format":false,"excerpt":"Go to the AWS EBS dashboard and modify the volume size. Might be good to create a snapshot of it for safety but haven't really failed ever doing this. # 1. Check the device of your partition $ sudo lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS loop0 7:0 0\u2026","rel":"","context":"In &quot;Code&quot;","block_context":{"text":"Code","link":"https:\/\/www.gubatron.com\/blog\/category\/code\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2022\/09\/xai-tmp-imgen-db8aab31-34e5-4be7-b882-a7e87a2836f9.jpg?fit=1091%2C655&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2022\/09\/xai-tmp-imgen-db8aab31-34e5-4be7-b882-a7e87a2836f9.jpg?fit=1091%2C655&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2022\/09\/xai-tmp-imgen-db8aab31-34e5-4be7-b882-a7e87a2836f9.jpg?fit=1091%2C655&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2022\/09\/xai-tmp-imgen-db8aab31-34e5-4be7-b882-a7e87a2836f9.jpg?fit=1091%2C655&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2022\/09\/xai-tmp-imgen-db8aab31-34e5-4be7-b882-a7e87a2836f9.jpg?fit=1091%2C655&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":3453,"url":"https:\/\/www.gubatron.com\/blog\/command-line-speed-test-see-how-fast-is-your-servers-connection\/","url_meta":{"origin":3543,"position":5},"title":"command line speed test, see how fast is your server&#8217;s connection","author":"gubatron","date":"January 6, 2016","format":false,"excerpt":"Save the following script in a file called speed_test #!\/bin\/bash # Requirements # sudo apt-get install lftp iperf lftp -e 'pget http:\/\/releases.ubuntu.com\/14.04.3\/ubuntu-14.04.3-desktop-amd64.iso; exit; ' make sure the file is executable: sudo chmod +x speed_test Once you have installed lftp and iperf make sure you have the script somewhere in your\u2026","rel":"","context":"In &quot;Code&quot;","block_context":{"text":"Code","link":"https:\/\/www.gubatron.com\/blog\/category\/code\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2016\/01\/Fiber-optics.jpg?fit=892%2C538&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2016\/01\/Fiber-optics.jpg?fit=892%2C538&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2016\/01\/Fiber-optics.jpg?fit=892%2C538&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2016\/01\/Fiber-optics.jpg?fit=892%2C538&ssl=1&resize=700%2C400 2x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/posts\/3543","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/comments?post=3543"}],"version-history":[{"count":3,"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/posts\/3543\/revisions"}],"predecessor-version":[{"id":3562,"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/posts\/3543\/revisions\/3562"}],"wp:attachment":[{"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/media?parent=3543"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/categories?post=3543"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/tags?post=3543"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}