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

AWS Resource Management by Kien Do

Karl Pena
September 21, 2017

AWS Resource Management by Kien Do

Presented by Kien Do at NoVA DevOps on 9/19/2017 (Talk 3)

Karl Pena

September 21, 2017
Tweet

More Decks by Karl Pena

Other Decks in Technology

Transcript

  1. 2 Confidential Agenda •  AWS resource management •  Manual/Automated AMI

    Rehydration •  Automated start and stop EC2 instances •  Demo •  Q&A
  2. 3 Confidential Automated AMI Rehydration •  Why? –  Keep EC2

    instances up-to-date AMI (Amazon Machine Image) for latest security updates, agent updates and other enhancements. •  How to find an approved AMI? –  Given specific region, operating system, AWS account.
  3. 4 Confidential Automated AMI Rehydration •  Manually update causes issues:

    1.  Error prone 2.  Time consuming 3.  Easy to skip the AMI updates when the team is busy •  Automated with CI/CD pipeline 1.  Schedule to run it weekly or on demand. 2.  Automatically identify an updated AMI. 3.  Integrate with CI/CD.
  4. 7 Confidential Automated AMI Rehydration •  Step 1: Set up

    a Jenkins cron job or Schedule CloudWatch Event
  5. 9 Confidential Automated AMI Rehydration •  Step 3: Compare current

    AMI with latest AMI and trigger a rehydration job if needed
  6. 12 Confidential Automated start and stop EC2 instances •  Why?

    1.  Reduce operational costs in Non-prod environment during off-hours •  How much will it save per year? 1.  24 hours x 365 days = 8760 hours 2.  12 hours x 5 days x 52 weeks = 3120 hours 3.  Saving 65% of your EC2 bill