Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
CloudFormation&Blue-Green Deployment
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
yasuo13
June 15, 2019
Technology
45
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
CloudFormation&Blue-Green Deployment
yasuo13
June 15, 2019
Other Decks in Technology
See All in Technology
分析AIエージェントを育てる、動く環境を育てる
codatum
1
1.1k
go-sqletch
moznion
0
140
会社説明資料
persolserverworks
0
9.8k
AIがコードを書く時代に、エンジニアは何で自分の価値を証明するのか / In an era where AI writes code how do engineers prove their value
carta_engineering
3
1.1k
Webの常識が通じないHTMLメールのダークモード
teamlab
PRO
0
120
LambdaWebFunctionsを試してみた / exploring-lambda-web-functions
koukihosaka
1
340
Railsで挑む大量データ永続化 〜600億件を永続化するための設計とボトルネックとの戦い〜
occhi
1
580
Post AI時代のリファクタリング実践記 / Refactoring in the post AI era
kaminashi
1
240
How to Design Configuration for Rails Applications
willnet
1
800
1つのリクエストを追って理解する - llm-dのP/D分離
akhino
1
160
今さら理解するウェブフォントver.2026
takanorip
3
820
Getting Started with Google Antigravity
glaforge
0
310
Featured
See All Featured
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
520
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
360
Discover your Explorer Soul
emna__ayadi
2
1.3k
Accessibility Awareness
sabderemane
1
250
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
590
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
580
Everyday Curiosity
cassininazir
0
350
The untapped power of vector embeddings
frankvandijk
2
1.9k
Testing 201, or: Great Expectations
jmmastey
46
8.3k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
53k
Odyssey Design
rkendrick25
PRO
2
870
Thoughts on Productivity
jonyablonski
76
5.4k
Transcript
20XX/XX/XX Cloud Formation & Blue-Green deployment 1
2 • Cloud Formation クラウド環境(EC2やELB等)をコード化して構築できます。 • Blue-Green deployment 2つのサーバ(環境)を運用していて、片方は本番運用中、 もう片方は開発物リリースやバージョンアップをしたもので、
テストまでしてる状態で、あるタイミングになったら本番運用サーバを もう片方に切り替えて、ダウンタイムを限りなく0に近づけてリリースする手法。
3 • 背景 ・開発担当から毎回ドメイン切り替えによるリリースを希望され、グリーン面の構築依頼が必要。 ・短期的にブルーグリーンの切り替えを行いたいという相談があった。 • 課題 ・上記の依頼をそのまま受けると、毎回ALB等を手動で構築を行う必要がある。 ・手作業なので作成物が現在の環境と同じ設定になっているかの確認も手間。 ・構築内容のヒアリングも大変。
• 提案した内容 ・CloudFormationでのリリースを提案して、毎回手動構築する手間を削減、品質も担保。 ・インフラ側:作業が楽になり、品質も担保できてハッピー ・開発側:依頼がシンプルになりハッピー
4 • リリース前 AS ALB Amazon Route 53 ***.com. EC2
5 • 毎回グリーン面を手動構築(元々) ***.com. AS ALB Amazon Route 53 EC2
AS ALB ①AMI取得 ②グリーン面を手動構築 ③向き先切り替え
6 • ①ALB-AS環境の複製 ***.com. AS ALB Amazon Route 53 EC2
AS-A ALB-A EC2-A ①複製の種サーバ構築 ②新規構築CloudFormation
7 • ②ドメインの向き先を新規構築へ切り替え ***.com. Amazon Route 53 EC2 AS-A ALB-A
EC2-A ①向き先切り替え AS ALB
8 • ③旧環境削除 ***.com. Amazon Route 53 EC2 AS-A ALB-A
EC2-A AS ALB 旧環境削除
9 • ③B環境をCFNで構築 ***.com. Amazon Route 53 EC2-B AS-A ALB-A
EC2-A AS-B ALB-B ①命名変更 ②新規構築(CloudFormation)
1 • ⑥切り替え後、必要なくなったA環境はスタックで削除 ***.com. Amazon Route 53 EC2-B AS-A ALB-A
EC2-A AS-B ALB-B ①ドメインの向き先を変更 ※すぐに切り戻し可能
1 • ⑥切り替え後、必要なくなったA環境はスタックで削除 ***.com. Amazon Route 53 EC2-B AS-A ALB-A
EC2-A AS-B ALB-B ①A環境はスタックで簡単に削除
1 • メリット ・手順書の準備が簡単 →CloudFormation コードのAMIのみ差し替えれば、新環境の構築が可能 ・グリーン面の構築時間の短縮 ・同じ環境を構築できるので品質が担保される ・旧環境の削除が簡単(スタックを削除するだけ) ・リリースのダウンタイムが少ない
• デメリット ・利用できるAWS環境や構成が限定的 ・コードの管理が必要