AWS Systems Manager
- Refer Here for official docs
Lab environment
- I will create
- node-1: one amazon linux ec2
- node-2: one ubuntu 22.04 ec2 instance
- node-3: one redhat 9 ec2 instance
- node-4: one windows server 2022 ec2 instance
- While creating these ec2 instances, lets give it a role configured
- Note: view classroom recording for guided creation
Systems Manager Setup
Sessions Manager
- This helps in securely connecting to linux and windows instances
- We can configure sessions in the ec2 instances where the agent was installed
- Note: Redhat instances will not have systems manager agent preinstalled, we need to install it. Refer Here
RunCommand
- The Run command in systems manager takes the help of SSM documents to execute inside the ec2 instance or group of ec2 instances
- Note: We have executed a run shell script document to install java on ubuntu instance
#!/bin/bash
sudo apt install openjdk-17-jdk -y
Fleet Manager
- This shows the list of all the nodes/instances managed by Systems Manager
- From here we can view all the information such as
- inventory
- users and groups
- processes
- Filesystem etc..
