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
用 AWS CodeDeploy 解決程式佈署
Search
Gea-Suan Lin
September 20, 2018
Technology
480
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
用 AWS CodeDeploy 解決程式佈署
Gea-Suan Lin
September 20, 2018
More Decks by Gea-Suan Lin
See All by Gea-Suan Lin
High Availability Vault Service on AWS Environment
gslin
0
7.3k
MySQL to NoSQL & Search Engine
gslin
0
2.3k
用 Vagrant 與 Docker 拯救世界
gslin
1
340
Startup IT infrastructure: Developing and Working with AWS
gslin
8
3.8k
Talk about Percona XtraDB Cluster
gslin
0
220
API Design Optimized for Mobile Platform
gslin
9
8.9k
Use Facebook::Graph to write desktop application
gslin
2
520
COSCUP 2012 - MySQL System Stability
gslin
17
12k
MySQL System Stability
gslin
4
6.1k
Other Decks in Technology
See All in Technology
AIがコードを書く時代に、エンジニアは何で自分の価値を証明するのか / In an era where AI writes code how do engineers prove their value
carta_engineering
0
290
LocalStack を使ったサーバーレスアプリケーション開発 / Serverless Development with LocalStack
kakakakakku
1
290
AgentCoreで実践するハーネスエンジニアリング
yakumo
1
290
生成AIで高い生産性を求められて、 悩み、乗り越えた話
mot_techtalk
2
130
freeeらしさをAIとともに作る / Creating the freee Experience with AI
ymrl
0
210
Datadog の学び方 - あるいは、オブザーバビリティを学ぶとは何か
mananyuki
1
500
今こそ知りたいAmplifyGen2
mkdev10
2
160
OR学会2026年秋期大会_機械学習と数理最適化の融合による、配合レシピ最適化システム開発事例
brainpadpr
0
100
Google Cloud Next Tokyo 26登壇時のスクリプト
recruitengineers
PRO
0
210
SREでアラート疲れを 解決しよう!
kairim0
1
210
MCPゲートウェイを作って運用してわかったこと — Agent時代の権限管理の現在地
mtpooh
10
3.2k
Incremental HTTP
kazuho
5
2.1k
Featured
See All Featured
Designing for Performance
lara
612
70k
HDC tutorial
michielstock
2
950
What does AI have to do with Human Rights?
axbom
PRO
1
2.4k
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
1
550
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
68
58k
Building AI with AI
inesmontani
PRO
1
1.3k
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
6
1.2k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
1
3.3k
A designer walks into a library…
pauljervisheath
211
25k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
123
22k
AI Search: Where Are We & What Can We Do About It?
aleyda
0
8.1k
Reality Check: Gamification 10 Years Later
codingconduct
0
2.3k
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。