[{"data":1,"prerenderedAt":1229},["ShallowReactive",2],{"docs-navigation":3,"\u002Fdocs\u002Fsaving\u002Fupgrade-guides\u002Fupgrade-elastic-beanstalk-instance-types":107},[4],{"title":5,"section":6,"to":7,"groups":8},"MilkStraw Saving","\u002Fdocs\u002Fsaving","\u002Fdocs\u002Fsaving\u002Fget-started\u002Fintroduction",[9,26,45,68,92],{"title":10,"links":11},"Get started",[12,14,18,22],{"title":13,"to":7},"Overview",{"title":15,"to":16,"icon":17},"How MilkStraw AI works","\u002Fdocs\u002Fsaving\u002Fget-started\u002Fhow-milkstraw-ai-works","IconLightBulb",{"title":19,"to":20,"icon":21},"Quickstart","\u002Fdocs\u002Fsaving\u002Fget-started\u002Fquickstart","IconPlugin1",{"title":23,"to":24,"icon":25},"Activate and track savings","\u002Fdocs\u002Fsaving\u002Fget-started\u002Factivate-savings","IconLightningBolt",{"title":27,"links":28},"Use MilkStraw AI",[29,33,37,41],{"title":30,"to":31,"icon":32},"Projects and findings","\u002Fdocs\u002Fsaving\u002Fuse-milkstraw-ai\u002Fprojects-and-findings","IconSquareChecklist",{"title":34,"to":35,"icon":36},"Spend","\u002Fdocs\u002Fsaving\u002Fuse-milkstraw-ai\u002Fspend","IconLineChart1",{"title":38,"to":39,"icon":40},"Milkman","\u002Fdocs\u002Fsaving\u002Fuse-milkstraw-ai\u002Fmilkman","IconChatBubbles",{"title":42,"to":43,"icon":44},"MilkStraw CLI","\u002Fdocs\u002Fsaving\u002Fuse-milkstraw-ai\u002Fcli","IconConsole",{"title":46,"links":47},"Upgrade guides",[48,52,56,60,64],{"title":49,"to":50,"icon":51},"Guides overview","\u002Fdocs\u002Fsaving\u002Fupgrade-guides\u002Foverview","IconBook",{"title":53,"to":54,"icon":55},"Amazon EKS","\u002Fdocs\u002Fsaving\u002Fupgrade-guides\u002Fupgrade-eks-instance-types","IconArrowUpCircle",{"title":57,"to":58,"icon":59},"Amazon EC2 Auto Scaling","\u002Fdocs\u002Fsaving\u002Fupgrade-guides\u002Fupgrade-asg-instance-types","IconBuildingBlocks",{"title":61,"to":62,"icon":63},"Amazon EBS gp2 to gp3","\u002Fdocs\u002Fsaving\u002Fupgrade-guides\u002Fupgrade-ebs-gp2-to-gp3","IconServer1",{"title":65,"to":66,"icon":67},"AWS Elastic Beanstalk","\u002Fdocs\u002Fsaving\u002Fupgrade-guides\u002Fupgrade-elastic-beanstalk-instance-types","IconGrowth",{"title":69,"links":70},"Resources",[71,75,79,82,85,89],{"title":72,"to":73,"icon":74},"Supported services","\u002Fdocs\u002Fsaving\u002Fresources\u002Fsupported-services","IconServer",{"title":76,"to":77,"icon":78},"Security","\u002Fdocs\u002Fsaving\u002Fresources\u002Fsecurity","IconShield",{"title":80,"to":81},"Permissions","\u002Fdocs\u002Fsaving\u002Fresources\u002Fpermissions",{"title":83,"to":84},"Roles","\u002Fdocs\u002Fsaving\u002Fresources\u002Froles",{"title":86,"to":87,"icon":88},"Billing","\u002Fdocs\u002Fsaving\u002Fresources\u002Fbilling","IconBanknote2",{"title":90,"to":91},"Cancellation","\u002Fdocs\u002Fsaving\u002Fresources\u002Fcancellation",{"title":93,"links":94},"Get help",[95,99,103],{"title":96,"to":97,"icon":98},"FAQ","\u002Fdocs\u002Fsaving\u002Fget-help\u002Ffaq","IconCircleQuestionmark",{"title":100,"to":101,"icon":102},"Troubleshooting","\u002Fdocs\u002Fsaving\u002Fget-help\u002Ftroubleshooting","IconHammer",{"title":104,"to":105,"icon":106},"Contact & support","\u002Fdocs\u002Fsaving\u002Fget-help\u002Fcontact","IconSupport",{"path":66,"data":108,"meta":112,"nodes":158},{"title":109,"description":110,"navigation":111},"Upgrade EC2 instance types for AWS Elastic Beanstalk","Step-by-step guide to upgrade EC2 instance types for existing AWS Elastic Beanstalk environments using Blue\u002FGreen or Rolling deployments.",{"title":65,"icon":67},{"toc":113,"key":150,"source":151,"stem":152,"extension":153,"kind":154,"type":155,"partial":156,"hash":157},{"title":114,"searchDepth":115,"depth":115,"links":116},"",2,[117,120,134,147],{"id":118,"depth":115,"text":119},"before-you-start","Before you start",{"id":121,"depth":115,"text":122,"children":123},"option-1-bluegreen-deployment-recommended","Option 1 · Blue\u002FGreen deployment (recommended)",[124,128,131],{"id":125,"depth":126,"text":127},"option-1-bluegreen-deployment-recommended-step-1-create-a-parallel-environment-green",3,"Step 1 · Create a parallel environment (Green)",{"id":129,"depth":126,"text":130},"option-1-bluegreen-deployment-recommended-step-2-shift-traffic-to-the-new-environment","Step 2 · Shift traffic to the new environment",{"id":132,"depth":126,"text":133},"option-1-bluegreen-deployment-recommended-step-3-decommission-or-park-the-old-environment","Step 3 · Decommission or park the old environment",{"id":135,"depth":115,"text":136,"children":137},"option-2-rolling-immutable-deployment-in-place-update","Option 2 · Rolling \u002F Immutable deployment (in-place update)",[138,141,144],{"id":139,"depth":126,"text":140},"option-2-rolling-immutable-deployment-in-place-update-step-1-change-the-instance-type","Step 1 · Change the instance type",{"id":142,"depth":126,"text":143},"option-2-rolling-immutable-deployment-in-place-update-step-2-configure-rolling-updates","Step 2 · Configure rolling updates",{"id":145,"depth":126,"text":146},"option-2-rolling-immutable-deployment-in-place-update-step-3-monitor-and-validate","Step 3 · Monitor and validate",{"id":148,"depth":115,"text":149},"extra-resources","Extra resources","docs\u002F2.saving\u002F3.upgrade-guides\u002F5.upgrade-elastic-beanstalk-instance-types.md","docs","2.saving\u002F3.upgrade-guides\u002F5.upgrade-elastic-beanstalk-instance-types",".md","document","text\u002Fmarkdown",false,"ce0493ee99bf7bfe",[159,163,188,193,196,199,202,275,277,279,282,290,293,333,338,341,407,411,414,560,564,567,608,615,619,622,636,639,650,653,665,669,672,729,732,734,736,742,746,752,776,779,783,786,811,814,829,835,839,842,894,896,898,901,926,929,932,946,950,978,981,992,994,996,999,1010,1014,1016,1018,1049,1051,1054,1141,1144,1146,1149,1169,1172,1183,1186,1194,1196,1198],[160,161,162],"p",{},"This guide walks you through upgrading EC2 instance types for existing AWS Elastic Beanstalk (EB) environments, with two main paths:",[164,165,166,178],"ul",{},[167,168,169,175],"li",{},[160,170,171],{},[172,173,174],"strong",{},"Option 1 (recommended): Blue\u002FGreen deployment",[160,176,177],{},"Create a parallel environment with the new instance type, validate it, then swap traffic.",[167,179,180,185],{},[160,181,182],{},[172,183,184],{},"Option 2: Rolling \u002F Immutable deployment",[160,186,187],{},"Change instance types in place using EB's rolling update settings.",[189,190,192],"callout",{"type":191},"note","MilkStraw AI doesn't recommend instance types for Elastic Beanstalk environments. Use this guide when you change the instance type yourself.",[194,195],"hr",{},[197,198,119],"h2",{"id":118},[160,200,201],{},"Make sure:",[164,203,204,234,248,255],{},[167,205,206,209],{},[160,207,208],{},"You can log in to the AWS Console and have IAM permissions for:",[164,210,211],{},[167,212,213,216,217,216,220,216,223,216,226,229,230,233],{},[172,214,215],{},"Elastic Beanstalk",", ",[172,218,219],{},"EC2",[172,221,222],{},"Auto Scaling",[172,224,225],{},"Elastic Load Balancing",[172,227,228],{},"IAM",", and ",[172,231,232],{},"Route 53"," (if you manage DNS there).",[167,235,236,243],{},[160,237,238,239,242],{},"You know your current ",[172,240,241],{},"Elastic Beanstalk platform",", for example:",[164,244,245],{},[167,246,247],{},"Docker, Node.js, .NET, Python, Java, etc.",[167,249,250,251,254],{},"You know whether your app requires ",[172,252,253],{},"GPU instances",".",[167,256,257,260],{},[160,258,259],{},"Your current EB environment:",[164,261,262,268],{},[167,263,264,265,254],{},"Is ",[172,266,267],{},"healthy (green)",[167,269,270,271,274],{},"Can have the ",[172,272,273],{},"same application version"," deployed to a new environment (you still have the artifact and configuration).",[194,276],{},[197,278,122],{"id":121},[160,280,281],{},"Safest path: clone your existing environment with a new instance type (green), validate it, then swap traffic from the old one (blue). This gives:",[164,283,284,287],{},[167,285,286],{},"Zero or very low downtime.",[167,288,289],{},"Instant, simple rollback by swapping traffic back.",[291,292,127],"h3",{"id":125},[294,295,296,302,312,323],"ol",{},[167,297,298,299,254],{},"Open the ",[172,300,301],{},"Elastic Beanstalk console",[167,303,304,305,308,309,254],{},"Go to ",[172,306,307],{},"Applications"," → choose your app → ",[172,310,311],{},"Environments",[167,313,314,315,318,319,322],{},"Select your current ",[172,316,317],{},"production environment"," (this is your ",[172,320,321],{},"blue"," env).",[167,324,325,326,329,330,254],{},"Click ",[172,327,328],{},"Actions"," → ",[172,331,332],{},"Clone environment",[334,335,337],"h4",{"id":336},"option-1-bluegreen-deployment-recommended-step-1-create-a-parallel-environment-green-_11-basics","1.1 Basics",[160,339,340],{},"In the clone wizard:",[164,342,343,370,391],{},[167,344,345,350,353],{},[160,346,347],{},[172,348,349],{},"Environment name",[160,351,352],{},"Use your own naming convention, for example:",[354,355,358],"pre",{"language":356,"class":357},"text","shiki shiki-themes github-light-default github-dark-default dark:github-dark-default",[359,360,362],"code",{"class":361},"language-text",[363,364,367],"span",{"class":365,"style":366},"line","display: inline",[363,368,369],{},"production-core-env-v2",[167,371,372,377],{},[160,373,374],{},[172,375,376],{},"Domain (CNAME)",[164,378,379,385],{},[167,380,381,382],{},"Let AWS auto-generate a CNAME (recommended; you'll swap later), ",[172,383,384],{},"or",[167,386,387,388,254],{},"Choose a distinct name like ",[359,389,390],{},"prod-core-v2.myapp.elasticbeanstalk.com",[167,392,393,398],{},[160,394,395],{},[172,396,397],{},"Application version",[164,399,400],{},[167,401,402,403,406],{},"Select the ",[172,404,405],{},"same version"," currently running in the blue environment.",[334,408,410],{"id":409},"option-1-bluegreen-deployment-recommended-step-1-create-a-parallel-environment-green-_12-capacity-instances","1.2 Capacity & instances",[160,412,413],{},"In the capacity \u002F instances settings:",[164,415,416,442,499,522,534],{},[167,417,418,423],{},[160,419,420],{},[172,421,422],{},"Instance type",[164,424,425],{},[167,426,427,433],{},[160,428,429,430,242],{},"Set to the ",[172,431,432],{},"new instance type",[354,434,435],{"language":356,"class":357},[359,436,437],{"class":361},[363,438,439],{"class":365,"style":366},[363,440,441],{},"m6a.xlarge",[167,443,444,449],{},[160,445,446],{},[172,447,448],{},"Scaling",[164,450,451,476],{},[167,452,453,456],{},[160,454,455],{},"For load-balanced environments, something like:",[354,457,458],{"language":356,"class":357},[359,459,460,465,466,465,471],{"class":361},[363,461,462],{"class":365,"style":366},[363,463,464],{},"Desired capacity: 2","\n",[363,467,468],{"class":365,"style":366},[363,469,470],{},"Min:              1",[363,472,473],{"class":365,"style":366},[363,474,475],{},"Max:              10",[167,477,478,481],{},[160,479,480],{},"For single-instance environments:",[354,482,483],{"language":356,"class":357},[359,484,485,465,490,465,494],{"class":361},[363,486,487],{"class":365,"style":366},[363,488,489],{},"Desired capacity: 1",[363,491,492],{"class":365,"style":366},[363,493,470],{},[363,495,496],{"class":365,"style":366},[363,497,498],{},"Max:              1",[167,500,501,506],{},[160,502,503],{},[172,504,505],{},"Root volume size",[164,507,508,515],{},[167,509,510,511,514],{},"Increase if your app needs more disk (for logs, temp files, ",[359,512,513],{},"emptyDir"," usage from containers, etc.).",[167,516,517,518,521],{},"Typical values: ",[172,519,520],{},"50–100 GiB"," for most web apps.",[167,523,524,529],{},[160,525,526],{},[172,527,528],{},"(Optional) Spot instances",[164,530,531],{},[167,532,533],{},"Only enable Spot or mixed capacity if you're comfortable with interruption handling and understand how EB manages mixed instances.",[167,535,536,541],{},[160,537,538],{},[172,539,540],{},"(Optional) GPU",[164,542,543],{},[167,544,545,548],{},[160,546,547],{},"Only choose GPU instance types if:",[164,549,550,553],{},[167,551,552],{},"Your platform \u002F AMI supports GPU, and",[167,554,555,556,559],{},"You have drivers installed (via ",[359,557,558],{},".ebextensions",", Docker image, or a custom AMI).",[334,561,563],{"id":562},"option-1-bluegreen-deployment-recommended-step-1-create-a-parallel-environment-green-_13-network","1.3 Network",[160,565,566],{},"Use the same network setup as your current (blue) environment:",[164,568,569,584,596],{},[167,570,571,576],{},[160,572,573],{},[172,574,575],{},"VPC and subnets",[164,577,578],{},[167,579,402,580,583],{},[172,581,582],{},"same VPC",", subnets, and availability zones.",[167,585,586,591],{},[160,587,588],{},[172,589,590],{},"Security groups",[164,592,593],{},[167,594,595],{},"Use the same instance and load balancer security groups as the blue environment.",[167,597,598,603],{},[160,599,600],{},[172,601,602],{},"Load balancer",[164,604,605],{},[167,606,607],{},"Keep the same type (ALB\u002FNLB\u002FClassic) and listener ports as the current environment.",[160,609,610,611,614],{},"This keeps behavior consistent so you're only changing ",[172,612,613],{},"instance type",", not overall topology.",[334,616,618],{"id":617},"option-1-bluegreen-deployment-recommended-step-1-create-a-parallel-environment-green-_14-software-environment-variables","1.4 Software & environment variables",[160,620,621],{},"Mirror the configuration from your blue environment:",[164,623,624,627,630,633],{},[167,625,626],{},"Environment variables and secrets.",[167,628,629],{},"Health check path \u002F URL.",[167,631,632],{},"Timeouts and connection draining \u002F deregistration delay on the load balancer.",[167,634,635],{},"Any platform-specific options (Node, .NET, Docker, etc.).",[160,637,638],{},"Then:",[164,640,641],{},[167,642,643,646,647,254],{},[172,644,645],{},"Create the environment"," and wait for health to become ",[172,648,649],{},"Green",[160,651,652],{},"While it's coming up, you can also monitor:",[164,654,655,662],{},[167,656,657,658,661],{},"Instance registration in the ",[172,659,660],{},"target group"," (if using ALB\u002FNLB).",[167,663,664],{},"Health checks on instances.",[334,666,668],{"id":667},"option-1-bluegreen-deployment-recommended-step-1-create-a-parallel-environment-green-_15-validate-the-new-environment","1.5 Validate the new environment",[160,670,671],{},"Before switching traffic, validate that the green environment behaves like production:",[164,673,674,694,713],{},[167,675,676,686],{},[160,677,298,678,681,682,685],{},[172,679,680],{},"new environment URL"," (its EB CNAME) and run ",[172,683,684],{},"smoke tests",":",[164,687,688,691],{},[167,689,690],{},"Basic page load.",[167,692,693],{},"Login \u002F key user flows.",[167,695,696,702],{},[160,697,698,699,685],{},"Check ",[172,700,701],{},"logs and metrics",[164,703,704,707,710],{},[167,705,706],{},"HTTP 4xx\u002F5xx.",[167,708,709],{},"Latency.",[167,711,712],{},"CPU\u002Fmemory (CloudWatch).",[167,714,715,718],{},[160,716,717],{},"If you depend on external services:",[164,719,720,723,726],{},[167,721,722],{},"Databases (RDS, Aurora, etc.)",[167,724,725],{},"Queues, caches, other APIs",[167,727,728],{},"Confirm connectivity and correct IAM roles.",[160,730,731],{},"Only move to the next step once the new environment looks healthy and stable.",[194,733],{},[291,735,130],{"id":129},[160,737,738,739,741],{},"Goal: move users to the environment running the ",[172,740,432],{}," while keeping the old one for fast rollback.",[334,743,745],{"id":744},"option-1-bluegreen-deployment-recommended-step-2-shift-traffic-to-the-new-environment-_21-lower-dns-ttl-if-using-a-custom-domain","2.1 Lower DNS TTL (if using a custom domain)",[160,747,748,749,685],{},"If you use a custom domain like ",[359,750,751],{},"app.example.com",[164,753,754,761],{},[167,755,756,757,760],{},"Typically it's a ",[172,758,759],{},"CNAME"," to the EB CNAME.",[167,762,763,764,767,768,771,772,775],{},"In Route 53 (or your DNS provider), ",[172,765,766],{},"lower the TTL"," on that CNAME to something like ",[172,769,770],{},"60–300 seconds",", ideally ",[172,773,774],{},"15–30 minutes before"," the swap.",[160,777,778],{},"This makes it faster for clients to pick up the new EB CNAME after the swap.",[334,780,782],{"id":781},"option-1-bluegreen-deployment-recommended-step-2-shift-traffic-to-the-new-environment-_22-swap-cnames-in-elastic-beanstalk","2.2 Swap CNAMEs in Elastic Beanstalk",[160,784,785],{},"In the EB console:",[294,787,788,794,801,808],{},[167,789,402,790,793],{},[172,791,792],{},"new (green)"," environment.",[167,795,304,796,329,798,254],{},[172,797,328],{},[172,799,800],{},"Swap environment URLs",[167,802,803,804,807],{},"Choose the ",[172,805,806],{},"old (blue)"," environment as the swap partner.",[167,809,810],{},"Confirm the swap.",[160,812,813],{},"EB will swap the CNAMEs so that:",[164,815,816,826],{},[167,817,818,819,822,823,254],{},"Your ",[172,820,821],{},"custom DNS",", if pointing to EB, now resolves to the ",[172,824,825],{},"green environment",[167,827,828],{},"The old environment gets the \"other\" CNAME, but stays running, untouched.",[160,830,831,834],{},[172,832,833],{},"Rollback"," is the same action in reverse: swap URLs again to send traffic back to blue.",[334,836,838],{"id":837},"option-1-bluegreen-deployment-recommended-step-2-shift-traffic-to-the-new-environment-_23-post-swap-checks","2.3 Post-swap checks",[160,840,841],{},"After the swap:",[164,843,844,864],{},[167,845,846,849],{},[160,847,848],{},"Watch:",[164,850,851,858,861],{},[167,852,853,854,857],{},"ALB\u002FNLB ",[172,855,856],{},"Target Group"," healthy hosts.",[167,859,860],{},"HTTP 5xx rate and latency.",[167,862,863],{},"Application logs and error tracking.",[167,865,866,869],{},[160,867,868],{},"If you see:",[164,870,871,874],{},[167,872,873],{},"Error spikes, high latency, or health turning yellow\u002Fred,",[167,875,876,883],{},[160,877,878,879,882],{},"Swap back ",[172,880,881],{},"immediately"," and investigate:",[164,884,885,888,891],{},[167,886,887],{},"Instance sizing (CPU, memory).",[167,889,890],{},"Network \u002F security group differences.",[167,892,893],{},"Any configuration drift.",[194,895],{},[291,897,133],{"id":132},[160,899,900],{},"Don't delete the blue environment immediately. Instead:",[294,902,903,910],{},[167,904,905,906,909],{},"Keep it around for a ",[172,907,908],{},"bake period"," (for example, 24–48 hours).",[167,911,912,915],{},[160,913,914],{},"During that time, monitor:",[164,916,917,920,923],{},[167,918,919],{},"Error rates.",[167,921,922],{},"Performance.",[167,924,925],{},"Any unusual behavior in the new environment.",[160,927,928],{},"Once you're confident:",[160,930,931],{},"You can either:",[164,933,934],{},[167,935,936,941],{},[160,937,938],{},[172,939,940],{},"Terminate the old environment",[164,942,943],{},[167,944,945],{},"This removes its Auto Scaling Group, instances, and load balancer.",[160,947,948],{},[172,949,384],{},[164,951,952],{},[167,953,954,959],{},[160,955,956],{},[172,957,958],{},"Scale to zero (for load-balanced envs)",[164,960,961,975],{},[167,962,963,964,967,968,971,972,254],{},"Set ",[172,965,966],{},"Desired"," and ",[172,969,970],{},"Min"," to ",[359,973,974],{},"0",[167,976,977],{},"This stops instances but preserves configuration so you can scale it back up temporarily if needed.",[160,979,980],{},"Finally, clean up:",[164,982,983,986,989],{},[167,984,985],{},"Old application versions you no longer need.",[167,987,988],{},"Unused target groups.",[167,990,991],{},"Any custom launch templates, if you created them for the old environment.",[194,993],{},[197,995,136],{"id":135},[160,997,998],{},"This option keeps the same environment but instructs EB to roll out the new instance type in batches. It's often useful for:",[164,1000,1001,1004,1007],{},[167,1002,1003],{},"Worker environments.",[167,1005,1006],{},"Internal services where short partial capacity reduction is acceptable.",[167,1008,1009],{},"Teams that prefer fewer separate environments.",[189,1011,1013],{"type":1012},"warning","This has more risk than Blue\u002FGreen because you're modifying the production environment directly, but Immutable deployments can still be quite safe.",[291,1015,140],{"id":139},[160,1017,785],{},[294,1019,1020,1025,1031],{},[167,1021,304,1022,1024],{},[172,1023,311],{}," → select your environment.",[167,1026,298,1027,1030],{},[172,1028,1029],{},"Configuration"," page.",[167,1032,1033,1039],{},[160,1034,1035,1036,685],{},"Under ",[172,1037,1038],{},"Instances",[164,1040,1041],{},[167,1042,963,1043,1045,1046,1048],{},[172,1044,422],{}," to the new instance type (for example, ",[359,1047,441],{},").",[291,1050,143],{"id":142},[160,1052,1053],{},"Still in Configuration:",[294,1055,1056,1062,1121],{},[167,1057,304,1058,1061],{},[172,1059,1060],{},"Rolling updates and deployments"," (or similar, depending on your EB console version).",[167,1063,1064,1074],{},[160,1065,1035,1066,1069,1070,1073],{},[172,1067,1068],{},"Configuration updates",", set ",[172,1071,1072],{},"Rolling update type",". An instance type change is a configuration update, so this setting applies, not the deployment policy. Choose one of:",[164,1075,1076,1102],{},[167,1077,1078,1084],{},[160,1079,1080,1083],{},[172,1081,1082],{},"Immutable"," (preferred where possible)",[164,1085,1086,1093,1096,1099],{},[167,1087,1088,1089,1092],{},"EB creates a ",[172,1090,1091],{},"temporary Auto Scaling Group"," with the new instance type.",[167,1094,1095],{},"New instances are registered with the load balancer.",[167,1097,1098],{},"Once healthy, EB cuts over and then retires the old instances.",[167,1100,1101],{},"If things go wrong, EB can roll back to the original ASG.",[167,1103,1104,1109],{},[160,1105,1106],{},[172,1107,1108],{},"Rolling based on Health",[164,1110,1111,1114],{},[167,1112,1113],{},"EB replaces instances in batches and waits for each new batch to pass health checks.",[167,1115,1116,1117,1120],{},"Each batch is terminated ",[172,1118,1119],{},"before"," its replacement launches, so capacity drops during the update.",[167,1122,1123,1133],{},[160,1124,1125,1126,1129,1130,685],{},"Set a ",[172,1127,1128],{},"safe batch size",", for example ",[172,1131,1132],{},"25–33%",[164,1134,1135,1138],{},[167,1136,1137],{},"This controls how much of your capacity is updated at once.",[167,1139,1140],{},"Make sure remaining capacity can handle your normal traffic.",[160,1142,1143],{},"Apply the changes.",[291,1145,146],{"id":145},[160,1147,1148],{},"While EB is updating:",[164,1150,1151],{},[167,1152,1153,1155],{},[160,1154,848],{},[164,1156,1157,1160,1163,1166],{},[167,1158,1159],{},"Environment health (should stay green).",[167,1161,1162],{},"Load balancer target health.",[167,1164,1165],{},"CPU\u002Fmemory on new instances.",[167,1167,1168],{},"5xx errors and latency.",[160,1170,1171],{},"If health degrades badly or errors spike:",[164,1173,1174,1180],{},[167,1175,1176,1179],{},[172,1177,1178],{},"Abort"," the deployment in the EB console.",[167,1181,1182],{},"EB will roll back to the previous Auto Scaling Group and instance type.",[160,1184,1185],{},"Once the deployment finishes:",[164,1187,1188,1191],{},[167,1189,1190],{},"Run smoke tests.",[167,1192,1193],{},"Validate key user paths, logs, and metrics.",[194,1195],{},[197,1197,149],{"id":148},[164,1199,1200,1211,1220],{},[167,1201,1202,1205,1206],{},[172,1203,1204],{},"Elastic Beanstalk deployment policies"," — ",[1207,1208,1210],"a",{"href":1209},"https:\u002F\u002Fdocs.aws.amazon.com\u002Felasticbeanstalk\u002Flatest\u002Fdg\u002Fusing-features.deploy-existing-version.html","AWS Elastic Beanstalk deployment options",[167,1212,1213,1205,1216],{},[172,1214,1215],{},"Blue\u002FGreen deployments with Elastic Beanstalk",[1207,1217,1219],{"href":1218},"https:\u002F\u002Fdocs.aws.amazon.com\u002Felasticbeanstalk\u002Flatest\u002Fdg\u002Fusing-features.CNAMESwap.html","AWS Blue\u002FGreen deployment guide",[167,1221,1222,1205,1225],{},[172,1223,1224],{},"Configuring Auto Scaling for Elastic Beanstalk",[1207,1226,1228],{"href":1227},"https:\u002F\u002Fdocs.aws.amazon.com\u002Felasticbeanstalk\u002Flatest\u002Fdg\u002Fusing-features.managing.as.html","Auto Scaling configuration",1792482912230]