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
用 AWS CodeDeploy 解決程式佈署
Search
Gea-Suan Lin
September 20, 2018
Technology
0
400
用 AWS CodeDeploy 解決程式佈署
Gea-Suan Lin
September 20, 2018
Tweet
Share
More Decks by Gea-Suan Lin
See All by Gea-Suan Lin
High Availability Vault Service on AWS Environment
gslin
0
7k
MySQL to NoSQL & Search Engine
gslin
0
2k
用 Vagrant 與 Docker 拯救世界
gslin
1
260
Startup IT infrastructure: Developing and Working with AWS
gslin
8
3.6k
Talk about Percona XtraDB Cluster
gslin
0
190
API Design Optimized for Mobile Platform
gslin
9
8.5k
Use Facebook::Graph to write desktop application
gslin
2
500
COSCUP 2012 - MySQL System Stability
gslin
17
12k
MySQL System Stability
gslin
4
5.9k
Other Decks in Technology
See All in Technology
CoRL 2025 Survey
harukiabe
0
170
「れきちず」のこれまでとこれから - 誰にでもわかりやすい歴史地図を目指して / FOSS4G 2025 Japan
hjmkth
1
300
OCI Network Firewall 概要
oracle4engineer
PRO
2
7.9k
速習AGENTS.md:5分で精度を上げる "3ブロック" テンプレ
ismk
6
1.1k
20201008_ファインディ_品質意識を育てる役目は人かAIか___2_.pdf
findy_eventslides
2
620
生成AIとM5Stack / M5 Japan Tour 2025 Autumn 東京
you
PRO
0
250
AI時代こそ求められる設計力- AWSクラウドデザインパターン3選で信頼性と拡張性を高める-
kenichirokimura
3
300
E2Eテスト設計_自動化のリアル___Playwrightでの実践とMCPの試み__AIによるテスト観点作成_.pdf
findy_eventslides
2
600
BI ツールはもういらない?Amazon RedShift & MCP Server で試みる新しいデータ分析アプローチ
cdataj
0
110
Oracle Base Database Service 技術詳細
oracle4engineer
PRO
11
80k
M5製品で作るポン置きセルラー対応カメラ
sayacom
0
180
[Codex Meetup Japan #1] Codex-Powered Mobile Apps Development
korodroid
2
470
Featured
See All Featured
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
The World Runs on Bad Software
bkeepers
PRO
72
11k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
31
2.7k
Producing Creativity
orderedlist
PRO
347
40k
How To Stay Up To Date on Web Technology
chriscoyier
791
250k
Site-Speed That Sticks
csswizardry
11
900
What's in a price? How to price your products and services
michaelherold
246
12k
The Language of Interfaces
destraynor
162
25k
Stop Working from a Prison Cell
hatefulcrawdad
271
21k
Building Flexible Design Systems
yeseniaperezcruz
329
39k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
9
870
For a Future-Friendly Web
brad_frost
180
9.9k
Transcript
用 AWS CodeDeploy 解決程式佈署 Gea-Suan Lin
[email protected]
CodeDeploy 是什麼? • https://aws.amazon.com/tw/codedeploy/ • 口語:「把程式丟到機器上」 • 目前支援三種情境: ◦ EC2
instance ◦ On-premise instance ◦ Lambda
CodeDeploy 的費用 • 沒有低消,用多少算多少。 • 佈署到 EC2 instance (同區?) 不用額外費用。
• 佈署到 On-premise instance 目前為 USD$0.02/台/次。
CodeDeploy 的好處 • 專注於 Deployment 的工具: ◦ Deployment Type ◦
Rollback ◦ Notification • 與 AWS 的服務整合。
CodeDeploy 的缺點 • 沒有 Incremental Deployment。 • 不是很穩定的速度。
其他常見的 Deploy 方案 • 使用 SSH 的方式: ◦ Capistrano •
使用設定管理工具: ◦ Chef ◦ Puppet • 使用 Container 的方式: ◦ Docker
Live Demo • 在 AWS 上的 EC2 instance。 • 非
AWS 裡的 VPS。 • 小抄: ◦ https://wiki.gslin.org/wiki/AWS_CodeDeploy • 工具: ◦ https://github.com/gslin/codedeploy-makefile
CodeDeploy 的已知問題 • Ubuntu 18.04 的安裝問題。 • 無法任意下載最新版本。 • 沒有
Queue 的機制。
Ubuntu 18.04 上的安裝 • https://github.com/aws/aws-codedeploy-agent/issues/158 ◦ 參考 2018/08/01 我寫的 workaround
script。 • 兩個項目要繞過: ◦ 安裝程式的檢查。 ◦ codedeploiy-agent 的相依性。
在開機時下載最新版本 • 通常不會是太大的問題... • 但 race codition 很討厭。
Queue 機制 • 用 AWS CodePipeline 解決。
CodePipeline 是什麼? • 把整套機制串起來的服務:
CodePipeline 的費用 • 沒有低消,用多少算多少。 • 一個「活著」的 Pipeline 收 USD$1/month。
Live Demo Again • 串 GitHub 與 CodeDeploy。