Managed Instances
- Instance which is in cloud or on premise with ssm agent installed and connected to AWS Systems Manger is managed instance
Run-Command
- Command which can be executed on the managed instance
Document
- We have used a Document called as AWS-Runshellscript
- Two kinds of Documents
- Predefined Documents:
- Create by AWS
- Custom Documents:
- Create by users
- To Create Custom Documents we need to know JSON & Document Syntax. Refer Here
- Predefined Documents:
State Manager
Use-Cases:
- Ensure SSH Access to all linux machine is production environment is denied
- Execute stop command periodically to maintain state is stopped
sudo service sshd stop
- Ensure apache server is enabled
- Ensure free spache on your C drive is grater than 5 GB
- Execute stop command periodically to maintain state is stopped