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
20221112_四国クラウドお遍路.pdf
Search
koara
November 14, 2022
Technology
370
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
20221112_四国クラウドお遍路.pdf
koara
November 14, 2022
Transcript
24 slides
四国クラウドお遍路 • 2022/11/12 • 古賀 巧
アジェンダ 自己紹介 JAWS-UGに初めて参加してみた話 Lambda Powertoolsを使ってみた話
3 自己紹介 ▪氏名・年齢 古賀 巧(@koara__fftr) 26→27歳 ▪経歴 SESでプリンタードライバーの開発・保守 ▪資格 ▪趣味
音楽
4 AWSとの出会い 去年夏 社内スピーチ AWS!! AWS!! AWS!!
5 AWS以前 AWSに出会ってから • 自分だけのネットワークを作成・管理 • アプリ全体を作成 • C/C++/C# •
Pythonすこし • 各種ログ(トレースログ,パケログ) • ダンプ解析etc.. 楽 し い 楽しい 楽しい 楽しい 楽しい
6 社内は難しそうなので社外へ...
7 JAWSに参加して良かったこと • 視野が広がる • やってみたいことが見つけられる • インプットの量が爆増 • 何とかなる☆(ゝω・)v
AWS Lambda Powertools for Python 使ってみた
9 サーバーレスは分散アーキテクチャー
10 分散アーキテクチャーを上手く運用するには →Serverless Applications Lens
11 Serverless Applications Lens Design Principles 1. Speedy, simple, singular
2. Think concurrent requests, not total requests 3. Share nothing 4. Assume no hardware affinity 5. Orchestrate your application with state machines, not functions 6. Use events to trigger transactions 7. Design for failures and duplicates
12 Serverless Applications Lens Operate section Metrics and alerts Centralized
and structured logging Distributed tracing Prototyping Configuration Testing Deploying
13 AWS Lambda Powertoolsとは AWSが開発するのオープンソースユーティリティー ▪できること Metrics Logger Tracer Event
Handler etc.. ▪使用できる言語 Java, Typescript, Python, .NET
14 AWS Lambda Powertoolsとは
15 AWS Lambda Powertools for Python ▪使い方 Lambda Layerとして利用 Lambda
Layer (x86_64):arn:aws:lambda:{region}:017000801446:layer:AWSLambdaPowertoolsPythonV2:13 Lambda Layer (arm64): arn:aws:lambda:{region}:017000801446:layer:AWSLambdaPowertoolsPythonV2-Arm64:13 PyPiからインストール PyPi: pip install "aws-lambda-powertools“ SAM: requirements.txt に aws-lambda-powertools を追加
16 Tracer X-Ray SDKのラッパー 通ったルートの可視化、例外情報もキャプチャ
17 Tracer 使い方
18 Metrics ※Lambda Powertools が使用できない言語を使用している 場合は Amazon CloudWatch Embedded Metric
Format ライブラリーを使用する 1. Lambda実行時にCloudWatch Logs へEMF形式でログ出力 2. CloudWatch Logs→非同期にCloudWatch Metrics
19 Metrics ※Lambda Powertools が使用できない言語を使用してい る場合は Amazon CloudWatch Embedded Metric
Formatライブラリーを使用する 様々な目的 • 運用のためのメトリクス • ビジネスKPIのためのメトリクス • ユーザーエクスペリエンスのメトリクス • システムのメトリクス
20 Metrics ※Lambda Powertools が使用できない言語を使用してい る場合は Amazon CloudWatch Embedded Metric
Formatライブラリーを使用する 使い方
2022/11/14 プレゼンテーションのタイトル 21 Logger よしなにJSON形式のログ出力 Handler以外でのログ出力も可能
22 AWS Lambda Powertools まとめ 障害を防ぐための運用をサポート 障害発生後の解析もサポート
参考サイト https://aws.amazon.com/jp/builders-flash/202203/lambda-powertools-python-1/?awsf.filter-name=*all https://awslabs.github.io/aws-lambda-powertools-python/2.2.0/ https://awstip.com/monitoring-lambdas-using-aws-powertools-1d11c0157c8e
ご清聴ありがとうございました
More Decks by koara
See All by koara
SST ( Serverless Stack Toolkit ) 使ってみた
ra1211
0
250
AWSでデータ解析を始めたーい
ra1211
0
370
もめんと会 Momento Cache
ra1211
0
89
JAWS-UG 名古屋 AVAハンズオン+re:Inforceの復習
ra1211
0
140
JAWS ミート 2023
ra1211
0
83
JAWS-UG大阪 AWS re:Invent 2022 re:Cap
ra1211
0
140
Other Decks in Technology
See All in Technology
思考過程から秘密が漏れる:Amazon Bedrock上のKimi K3を5つの方法で攻めたら、25回中22回漏洩した話
yama3133
1
160
市販IoT機器や自作IoT機器とHomeAssistantを駆使して家の電気代をできる限り見える化する方法の考案
harutiro
0
250
大江戸Ruby会議でデータベース クライアントの話をするのは 間違っているだろうか
yahonda
1
130
AWS Client VPNの設定でハマったポイントとその過程での気づき
amarelo_n24
0
160
Context Ontology Accelerator 入門 (業務データの意味を、AI エージェントに渡す)
inariku
PRO
3
690
OpenTelemetryで変わった 新時代のCloudWatchメトリクス監視
tsukuboshi
0
220
少ない人手 限られた予算 それでも守る 消せない・見つける・戻れる オールハザード型BCP on AWS / 20261107 Mitsutoshi Matsuo
shift_evolve
PRO
0
390
Shared Signals Framework 仕様解説
oidfj
0
440
BALLAS Technology Deck
ballas_inc
0
650
アラートを見直していたら営業組織への理解にちょっとだけ繋がった話
z63d
1
200
速くなるほど、深く考える AI時代のQAに学ぶ
kobayashiyorimitsu
0
230
Kiro アップデート 2026 年 11 月号 (11 月 8 日時点) | 目指せ Kiro マスター アップデート編
inariku
PRO
2
130
Featured
See All Featured
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.6k
Believing is Seeing
oripsolob
1
280
Leo the Paperboy
mayatellez
11
2.5k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
18k
A Tale of Four Properties
chriscoyier
163
24k
Being A Developer After 40
akosma
PRO
92
590k
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
2
450
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
23k
Chasing Engaging Ingredients in Design
codingconduct
0
400
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
4
1.3k
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
980
Stop Working from a Prison Cell
hatefulcrawdad
274
21k