Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
20211120 Automating EC2 operations / EC2運用の自動化
Search
Masaru Ogura
November 20, 2021
Technology
0
24
20211120 Automating EC2 operations / EC2運用の自動化
2021/11/20 JAWS PANKRATION 2021の資料です。
Masaru Ogura
November 20, 2021
Tweet
Share
More Decks by Masaru Ogura
See All by Masaru Ogura
20241218 私の気になる VPC 周りのアップデート
masaruogura
0
38
20240530 Backlogでスクラムを回してみよう
masaruogura
0
270
20240516 JAWS-UG 朝会 運営の裏側
masaruogura
1
190
20240509 CloudWatch でいろいろなものを監視してみよう
masaruogura
1
210
20240329 第34回 JAWS-UG札幌勉強会 オープニング
masaruogura
0
25
20240216 Amazon Linux 2 を 2023 に移行してみた
masaruogura
1
5.4k
20240202 第33回 JAWS-UG札幌勉強会 オープニング
masaruogura
0
22
20231215 第32回 JAWS-UG札幌勉強会 オープニング
masaruogura
0
18
20230928 第31回 JAWS-UG札幌勉強会 オープニング
masaruogura
0
17
Other Decks in Technology
See All in Technology
ABWGのRe:Cap!
hm5ug
1
120
Goで実践するBFP
hiroyaterui
1
120
Amazon Route 53, 待ちに待った TLSAレコードのサポート開始
kenichinakamura
0
160
深層学習と3Dキャプチャ・3Dモデル生成(土木学会応用力学委員会 応用数理・AIセミナー)
pfn
PRO
0
460
今年一年で頑張ること / What I will do my best this year
pauli
1
220
.NET AspireでAzure Functionsやクラウドリソースを統合する
tsubakimoto_s
0
190
自社 200 記事を元に整理した読みやすいテックブログを書くための Tips 集
masakihirose
2
330
20250116_自部署内でAmazon Nova体験会をやってみた話
riz3f7
1
100
今から、 今だからこそ始める Terraform で Azure 管理 / Managing Azure with Terraform: The Perfect Time to Start
nnstt1
0
220
Amazon Q Developerで.NET Frameworkプロジェクトをモダナイズしてみた
kenichirokimura
1
200
Reactフレームワークプロダクトを モバイルアプリにして、もっと便利に。 ユーザに価値を届けよう。/React Framework with Capacitor
rdlabo
0
120
Docker Desktop で Docker を始めよう
zembutsu
PRO
0
160
Featured
See All Featured
Faster Mobile Websites
deanohume
305
30k
GraphQLとの向き合い方2022年版
quramy
44
13k
The Straight Up "How To Draw Better" Workshop
denniskardys
232
140k
Visualization
eitanlees
146
15k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
44
9.4k
Java REST API Framework Comparison - PWX 2021
mraible
28
8.3k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
28
2.2k
Automating Front-end Workflow
addyosmani
1366
200k
Site-Speed That Sticks
csswizardry
2
270
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
59k
Art, The Web, and Tiny UX
lynnandtonic
298
20k
No one is an island. Learnings from fostering a developers community.
thoeni
19
3.1k
Transcript
Automating EC2 operations 2021-11-20 22:40 - 23:00 (JST)
Masaru Ogura (Japan) ‒ Serverworks Co., Ltd. ‒ JAWS-UG Sapporo
/ Morning Meeting ‒ APN ALL AWS Certifications Engineer ‒ AWS Community Builder
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
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)
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)
Automating ‒ Auto Backup ‒ Auto Patching ‒ Auto Recovery
Auto Backup AWS Backup ‒ Scheduled backup (AMI)
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
Auto Patching AWS Systems Manager ‒ Patch Manager ‒ Scheduled
patching
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
Auto Recovery (part 1) Amazon CloudWatch alarms ‒ Check metrics
‒ StatusCheckFailed_System (HW)
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
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.
Auto Recovery (part 2) Amazon CloudWatch ‒ Process Monitoring (with
procstat plugin) ‒ httpd, mysqld
None
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
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
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
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
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
Summary ‒ Automation makes operation easier. ‒ Automation allows you
to use your free time for other things. ‒ Let's automate the operation!
None