Upgrade to Pro — share decks privately, control downloads, hide ads and more …

AWS Systems Manager

AWS Systems Manager

AWS Systems Manager is a service that groups 16 very different yet related tools, and while the name might suggest you'll be using them with virtual machines, a lot of them are very broadly applicable. In this talk, we will give an overview of all the different components, explain how they can reduce operational complexity, and zoom in on a few of our favorite features.

Ben Bridts

June 24, 2021
Tweet

More Decks by Ben Bridts

Other Decks in Technology

Transcript

  1. AWS Systems Manager • Explorer • OpsCenter • Incident Manager

    • Application Manager • AppConfig • Parameter Store • Change Manager • Automation • Maintenance Windows • Fleet Manager • Compliance • Inventory • Session Manager • Run Command • State Manager • Patch Manager • Distributor
  2. AWS Systems Manager • Operations Management • Explorer • OpsCenter

    • Incident Manager • Application Management • Application Manager • AppConfig • Parameter Store • Change Management • Change Manager • Automation • Maintenance Windows • Node Management • Fleet Manager • Compliance • Inventory • Session Manager • Run Command • State Manager • Patch Manager • Distributor
  3. AWS Systems Manager • Operations Management • Explorer • OpsCenter

    • Incident Manager • Application Management • Application Manager • AppConfig • Parameter Store • Change Management • Change Manager • Automation • Maintenance Windows • Node Management • Fleet Manager • Compliance • Inventory • Session Manager • Run Command • State Manager • Patch Manager • Distributor
  4. Any workload that has some form of network connectivity, […]

    requires multiple layers of defense to help protect from […] network-based threats AWS Well-Architected Framework
  5. Session Manager VPC Private subnet Public subnet Target Instance Bastion

    Security group Security group allow ssh from 0.0.0.0/0 allow ssh from Bastion User
  6. What do I need? • SSM Agent • Installed by

    default on Amazon Linux, macOS, Ubuntu, Windows • Supports Linux, Windows, macOS • EC2 or Hybrid (“advanced instances”) • IAM Role with AmazonSSMManagedInstanceCore policy • Or custom policy
  7. Advanced Features • Use IAM permissions to control access •

    Port forwarding + SSH (and SCP) • Logging and auditing • CloudTrail • S3 • CloudWatch Logs • EventBridge (based on CloudTrail)
  8. [Using automated runbooks] ensures consistency, speeds responses, and reduces errors

    caused by manual processes. AWS Well-Architected Framework
  9. Runbooks (aka Automation Documents) Automation Runbook Automation Action Automation Action

    Automation Action Actions: • Flow control • Call AWS APIs and wait for properties • Interact with Instances, AMIs and CloudFormation Stacks • Run Automations or Commands • Execute Lambda Functions or Step Functions • Execute scripts (python or powershell)
  10. Advanced usages • Trigger based on events • EventBridge •

    State Manager • Maintenance Window • Target groups of instances • Use rate controls • Run across regions and accounts
  11. OpsCenter Amazon EventBridge OpsCenter AWS Security Hub Amazon EC2 Auto

    Scaling AWS Personal Health Dashboard AWS CloudTrail Amazon CloudWatch Incident Manager Amazon Devops Guru Automation Related Resources User AWS Management Console Amazon Simple Notification Service (Amazon SNS)
  12. Use environment variables for infrequent changes […]. Use AWS System

    Manager Parameter Store for dynamic configuration […] Store sensitive data using AWS Secrets Manager. AWS Well-Architected Framework Serverless Lens
  13. Parameter Store Private Parameters AWS Management Console AWS Command Line

    Interface (AWS CLI) AWS Tools and SDKs References Public Parameters Global Infrastructure AMI Container Image AWS Secrets Manager Amazon EC2 Consumers Amazon ECS AWS Tools and SDKs AWS CloudFormation AWS CodeBuild AWS Management Console
  14. Advanced Features • Change notifications (EventBridge) • Standard and Advanced

    Tier • Parameter Policies (expiration, no-change notification)
  15. AWS Systems Manager • Operations Management • Explorer • OpsCenter

    • Incident Manager • Application Management • Application Manager • AppConfig • Parameter Store • Change Management • Change Manager • Automation • Maintenance Windows • Node Management • Fleet Manager • Compliance • Inventory • Session Manager • Run Command • State Manager • Patch Manager • Distributor