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
2021.09-DeployDeGo!!
Search
w2or3w
September 24, 2021
29
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
2021.09-DeployDeGo!!
w2or3w
September 24, 2021
More Decks by w2or3w
See All by w2or3w
2021.08-CICD-01
w2or3w
0
72
2021.06-Deploy-de-Go!!
w2or3w
0
51
2021.04-YOTEIASOBI vol.1 (Amplify, Cognito, Google Calendar)
w2or3w
0
330
2020.12-浜松IT合同勉強会2020
w2or3w
0
320
2020.10-にゃーにゃーマップvol.4(Uber H3 Index)
w2or3w
0
440
2020.09-JAWS UG SONIC(コロナ対策サイト+にゃーにゃーマップvol.3)
w2or3w
0
360
2020.07-にゃーにゃーマップvol.2(CloudSearch)
w2or3w
0
370
2020.06-にゃーにゃーマップvol.1
w2or3w
0
360
2020.03-サーバーレスWebアプリ制作で学ぶAppSync
w2or3w
0
360
Featured
See All Featured
Amusing Abliteration
ianozsvald
1
370
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
290
Game over? The fight for quality and originality in the time of robots
wayneb77
1
320
Making the Leap to Tech Lead
cromwellryan
135
10k
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
120
120k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
350
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
56k
Statistics for Hackers
jakevdp
799
230k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
310
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
1
550
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.4k
4 Signs Your Business is Dying
shpigford
187
23k
Transcript
Lambdaで Go!! @w2or3w 2021.09.24 JAWS-UG浜松 AWS勉強会 2021#9
LambdaでGo!! Go言語のプログラムをLambdaにデプロイします。 1. ZIPファイルでデプロイ 2. コンテナイメージでデプロイ 3. CodePipelineでCICD 今日やること
ナカムラ ツカサ (38) 浜松市在住の リーマンアプリケーションエンジニア 好き: サーバーレスWebアプリ制作, CI/CD, データレイク, データ連携
Amplify, APIGateway, Lambda, DynamoDB, S3, CodePipeline, CodeBuild 転職して3ヶ月 Webアプリ(Nuxt)の実装しつつ、 CICD担当としてAWSと戯れる日々。 @w2or3w 2(ツー) or(~か) 3(サン) 自己紹介
◯ learn-run-go/01.helloworld ★ learn-run-go/02.lambda ◯ learn-run-go/03.webapp $ git clone https://github.com/ww2or3ww/learn-run-go.git
ローカル環境を汚したくない場合は、 Cloud9をご利用ください。 LambdaでGo!!
{ "hello", "world!" } というJSON を BODY で返す Lambda ファンクション。
LambdaでGo!!
1. ZIPファイルでデプロイ 1.1. ローカルで実行する。
1. ZIPファイルでデプロイ 1.2. デプロイする。
2. コンテナイメージでデプロイ 2.1. ローカルでコンテナを立ち上げて実行する。
2. コンテナイメージでデプロイ 2.2. デプロイする。 $ aws ecr get-login-password --region ap-northeast-1
| \ docker login --username AWS --password-stdin \ ${AWS_ACCOUNT_ID }.dkr.ecr.ap-northeast-1.amazonaws.com $ docker build -f Dockerfile.release -t learn-run-go-release . $ docker tag learn -run-go-release:latest \ ${AWS_ACCOUNT_ID }.dkr.ecr.ap-northeast-1.amazonaws.com/learn-run-go-repository:latest $ docker push ${AWS_ACCOUNT_ID }.dkr.ecr.ap-northeast-1.amazonaws.com/learn-run-go-repository:latest
2. コンテナイメージでデプロイ Dockerfileの差分 (Debug / Release)
3. CodePipelineでCI/CD 2021.06.25 JAWS-UG浜松 AWS勉強会 2021#6で話をした GoのLambdaをCodePipelineでCI/CD化
3. CodePipelineでCI/CD 本当は最後にやってる Lambdaの更新(aws lambda update-function-code)、 デプロイステージでやらせたかったけど、やりかた何もわからん、、。 (AWS CloudFormationでやるっぽい。 )
Enjoy Deploy🚀 Thank You !! @w2or3w