AWS Classroomnotes 18/Mar/2023

Compute – Workshop

  • Areas of Focus
    • Automation
    • Administration

Activity 1: Shutdown all instances which have tag Env=QA

  • Setup: Create 3 ec2 instances of free tier and provide tags
    • Machine 1: Env: QA
    • Machine 2: Env: Dev
    • Machine 3: Env: UAT
  • Refer Here for the cli with script
  • Improvement 1: This script was failing if there are no instances matching critiera, so we add a flag or condition Refer Here for changes.
  • Improvement 2: Make this script work for tag Env=Dev Refer Here for the imporvement where user can now call activity1.sh <tag-name> <tag-value>

Activity 2: Resize the EC2 instance from t2.micro to t2.nano based on tags

Preview

Activity 3: EC2 Systems Manager

  • Systems Manager can be used to control linux or window workloads in

    • AWS
    • Other Cloud Providers
    • On-premises
    • IOT
      Preview
  • General Setup of Systems Manager Refer Here and Refer Here for setup on ec2 instances

Setting up Systems Manager

  • Refer Here for pre-requisites
  • Navigate to Systems Manager
    Preview
    Preview
    Preview
    Preview
    Preview
    Preview
    Preview
  • Now Create an Instance Profile Refer Here
  • Refer Here to attach IAM role to existing ec2 instance
  • AWS Recommends using Configure Default Host Management
    • Navigate to systems Manager -> Fleet Manager ->
      Preview
      Preview
  • Now we can recover from key lost scenarios Refer Here

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 Network Widget by Acurax Small Business Website Designers

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