{"id":572,"date":"2017-09-22T02:28:49","date_gmt":"2017-09-22T02:28:49","guid":{"rendered":"http:\/\/wiki.thomasandsofia.com\/?p=572"},"modified":"2017-09-22T12:36:51","modified_gmt":"2017-09-22T12:36:51","slug":"ec2-auto-scaling-45","status":"publish","type":"post","link":"https:\/\/wiki.thomasandsofia.com\/?p=572","title":{"rendered":"EC2 Auto Scaling (45) (Incomplete)"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>Before you can configure an Auto Scaling group, you must first create a &#8216;Launch Configuration&#8217;.\u00a0 This is the template that defines how each of the new instances will be provisioned.<\/p>\n<p>Make sure you&#8217;ve already created a Load Balancer CLASSIC and Target Group<\/p>\n<ul>\n<li>it did not see my Application LB!<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul>\n<li>EC2 &gt; Auto Scaling &gt; Launch Configurations &gt; [Create Auto Scaling group] &gt; [Create launch configuration]<\/li>\n<li>AWS Linux AMI &gt; t2.micro<\/li>\n<li>Create Launch Configuration\n<ul>\n<li>Name: Autoscale<\/li>\n<li>IAM role: S3Admin<\/li>\n<li>Advanced Details\n<ul>\n<li>User data (This is your startup script)<\/li>\n<li>\n<pre>#! \/bin\/bash\r\nyum update -y\r\nyum install httpd -y\r\naws s3 cp s3:\/\/thomasandsofia \/var\/www\/html --recursive\r\nservice httpd start\r\nchkconfig httpd on<\/pre>\n<\/li>\n<li>IP Address Type\n<ul>\n<li>Only assign a public IP<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>Add Storage<\/li>\n<li>Select Security Group<\/li>\n<\/ul>\n<\/li>\n<li>Create Auto Scaling Group\n<ul>\n<li>Create an Auto Scaling group from an existing launch configuration\n<ul>\n<li>Select you Launch Config<\/li>\n<\/ul>\n<\/li>\n<li>Group name: HelloAuto<\/li>\n<li>Group size: start with [2] instances<\/li>\n<li>Network (Defaults to your VPC)<\/li>\n<li>Subnet (Select all AZ available!)<\/li>\n<li>Advanced Details\n<ul>\n<li>[x] Load Balancing<\/li>\n<li>Classic Load Balancers &gt; Select your LB<\/li>\n<li>Target Groups &gt; Select your Target Group<\/li>\n<\/ul>\n<\/li>\n<li>[Next]<\/li>\n<li>(*) Keep this group at its initial size<\/li>\n<li><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; Before you can configure an Auto Scaling group, you must first create a &#8216;Launch Configuration&#8217;.\u00a0 This is the template that defines how each of the new instances will be provisioned. Make sure you&#8217;ve already created a Load Balancer CLASSIC and Target Group it did not see my Application LB! &nbsp; EC2 &gt; Auto Scaling ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/wiki.thomasandsofia.com\/?p=572\" title=\"read more...\">Read more<\/a><\/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":[],"class_list":["post-572","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/posts\/572","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=572"}],"version-history":[{"count":4,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/posts\/572\/revisions"}],"predecessor-version":[{"id":576,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/posts\/572\/revisions\/576"}],"wp:attachment":[{"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=572"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=572"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=572"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}