Automatic Deployments into Auto scaling groups
- We have an AMI & by using this we have created a launch template which in turn is used in auto scaling groups
- Now developer has a new change which leads to new AMI and this image needs to be updated in autoscaling group without bringing the whole application down.
- This concept is referred as upgrades.
Lab setup
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Welcome!</title>
<style>
body {
font-family: sans-serif;
background-color: #ADD8E6; /* Light Blue */
display: flex;
justify-content: center;
align-items: center;
height: 100vh; /* Make sure it fills the whole viewport */
margin: 0; /* Remove default body margins */
}
.container {
text-align: center;
padding: 20px;
background-color: #FFFFFF; /* White container background */
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Optional shadow */
}
h1 {
color: #007BFF; /* A brighter blue for the heading */
}
p {
font-size: 1.2em;
color: #333;
}
</style>
</head>
<body>
<div class="container">
<h1>Welcome to Learning!</h1>
<p>We're glad you're here to start your learning journey!</p>
</div>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Welcome!</title>
<style>
body {
font-family: sans-serif;
background-color: #FF69B4; /* Hot Pink */
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
.container {
text-align: center;
padding: 20px;
background-color: #FFFFFF; /* White container background */
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
h1 {
color: #C71585; /* Medium Violet Red (darker pink) */
}
p {
font-size: 1.2em;
color: #333;
}
</style>
</head>
<body>
<div class="container">
<h1>Welcome to Learning!</h1>
<p>We're glad you're here to start your learning journey!</p>
</div>
</body>
</html>
- Lets create an AMI for version 1 as done in class
- now create a launch template with welcome ami

- Now create an asg with this launch template and choose the default or latest version in launch template (for options watch classroom recording)
- Now create a new ami with version 2
- update the launch tempate with new ami version as latest and default
- Now execute the instance refresh
- Watch the classroom recording
Like this:
Like Loading...