MultiCloud Classroom notes 07/Feb/2025

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

  • Version 1 home page
<!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>

  • Version 2 home page
<!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
    Preview
  • 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

Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Social Media Icons Powered by Acurax Web Design Company

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube