$30 off During Our Annual Pro Sale. View Details »

20211120 Automating EC2 operations / EC2運用の自動化

20211120 Automating EC2 operations / EC2運用の自動化

2021/11/20 JAWS PANKRATION 2021の資料です。

Masaru Ogura

November 20, 2021
Tweet

More Decks by Masaru Ogura

Other Decks in Technology

Transcript

  1. Masaru Ogura (Japan) ‒ Serverworks Co., Ltd. ‒ JAWS-UG Sapporo

    / Morning Meeting ‒ APN ALL AWS Certifications Engineer ‒ AWS Community Builder
  2. AWS Cloud VPC Public subnet Corporate data center VPS (Virtual

    Private Server) (CentOS 5 / WordPress) Internet Replication Server Target TCP 443 TCP 443 TCP 1500 AWS API (Replication Configration) Data replication (encrypted) CloudEndure Migration
  3. AWS Cloud VPC Public subnet Amazon Linux 2 (WordPress) CentOS

    5 (WordPress) Amazon CloudFront ACM Systems Manager CloudWatch AWS Backup AWS Lambda Amazon SNS (HTTPS) (HTTP)
  4. AWS Cloud VPC Public subnet Amazon Linux 2 (WordPress) CentOS

    5 (WordPress) Amazon CloudFront ACM Systems Manager CloudWatch AWS Backup AWS Lambda Amazon SNS (HTTPS) (HTTP)
  5. AWS Cloud VPC Public subnet Amazon Linux 2 (WordPress) CentOS

    5 (WordPress) Amazon CloudFront ACM Systems Manager CloudWatch AWS Backup AWS Lambda Amazon SNS Get AMI once a day
  6. AWS Cloud VPC Public subnet Amazon Linux 2 (WordPress) CentOS

    5 (WordPress) Amazon CloudFront ACM Systems Manager (Patch Manager) CloudWatch AWS Backup AWS Lambda Amazon SNS Scheduled patching
  7. AWS Cloud VPC Public subnet Amazon Linux 2 (WordPress) CentOS

    5 (WordPress) Amazon CloudFront ACM Systems Manager CloudWatch alarm AWS Backup AWS Lambda Amazon SNS Check StatusCheck metrics
  8. AWS Cloud VPC Public subnet Amazon Linux 2 (WordPress) CentOS

    5 (WordPress) Amazon CloudFront ACM Systems Manager CloudWatch alarm AWS Backup AWS Lambda Amazon SNS If the alarm goes up, restart EC2.
  9. AWS Cloud VPC Public subnet Amazon Linux 2 (WordPress) CentOS

    5 (WordPress) Amazon CloudFront ACM Systems Manager (Run Command) CloudWatch alarm AWS Backup Check Process number metrics AWS Lambda Amazon SNS
  10. AWS Cloud VPC Public subnet Amazon Linux 2 (WordPress) CentOS

    5 (WordPress) Amazon CloudFront ACM Systems Manager (Run Command) CloudWatch alarm AWS Backup Notify SNS AWS Lambda Amazon SNS
  11. AWS Cloud VPC Public subnet Amazon Linux 2 (WordPress) CentOS

    5 (WordPress) Amazon CloudFront ACM Systems Manager (Run Command) CloudWatch alarm AWS Backup Execute lambda from SNS AWS Lambda Amazon SNS
  12. AWS Cloud VPC Public subnet Amazon Linux 2 (WordPress) CentOS

    5 (WordPress) Amazon CloudFront ACM Systems Manager (Run Command) CloudWatch alarm AWS Backup Execute Run Command from Lambda AWS Lambda Amazon SNS
  13. AWS Cloud VPC Public subnet Amazon Linux 2 (WordPress) CentOS

    5 (WordPress) Amazon CloudFront ACM Systems Manager (Run Command) CloudWatch alarm AWS Backup Start httpd or mysqld process AWS Lambda Amazon SNS
  14. Summary ‒ Automation makes operation easier. ‒ Automation allows you

    to use your free time for other things. ‒ Let's automate the operation!