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
28
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
71
2021.06-Deploy-de-Go!!
w2or3w
0
49
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
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
33
5.1k
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
2
2.9k
Marketing to machines
jonoalderson
1
5.9k
Believing is Seeing
oripsolob
1
240
SEO for Brand Visibility & Recognition
aleyda
0
4.8k
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
390
What does AI have to do with Human Rights?
axbom
PRO
1
2.4k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Automating Front-end Workflow
addyosmani
1369
210k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.9k
The SEO identity crisis: Don't let AI make you average
varn
0
580
Bash Introduction
62gerente
615
220k
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