Scaling Flashcards
What is SSM?
Systems Manager
How do you get the systems manager to work?
You must install the SSM agent onto the instance. It is installed on Amazon Linux AMI and Ubuntu already
What should you do to make sure that the instance can use the SSM agent?
Make sure you assign an IAM role to the instance that allows SSM access (AWS managed role exists)
What are 2 key aspects of Systems Manager that helps to automate patching etc?
- Resource Groups
- Tagging
What is an SSM Document?
It is a JSON or YAML file that contains parameters and actions to perform such as runShellScript with input commands. It is essentially a script to run.
What are the 4 features of RunCommand?
- Executes a document across multiple instances
- Provides Rate Control/Error control
- Integrated with IAM and Cloudtrail
- No need for ssh
What are the 3 document types?
- Command Document
- Policy Document
- Automation Document
What can you do in terms of Patching with SSM?
- List Software on an instance
- Patch Software
- Patch OS
What is the Session Manager?
It allows you to start a secure shell on your VM without using ssh or bastion.
What are the 5 traditional steps you should take if you lost your SSH key for an EBS backed instance?
- Stop the instance and detach the root volume
- Attach the volume to a new instance
- Modify the ~/.ssh/authorized_keys file with your new key
- Move the volume back to the stopped instance
- Start the instance and you can ssh into it again
Using SSM, what should you do if you lost your SSH key for an EBS backed instance?
Run the AWSSupport-ResetAccess automation document
Using SSM, what should you do if you lost your SSH key for an instance store backed instance?
Use Session Manager to access the ~/.ssh/authorized_keys file
What is the Parameter Store?
It provides secure storage for configuration and secrets
What are the 2 API calls you could make to Parameter Store to get params?
- GetParameters
- GetParametersByPath
What is OpsWorks?
It is AWS managed Chef/Puppet. It is also kind of an alternative to SSM