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
ElasticBeanStalkに入門できなかった話
Search
工藤花未
February 07, 2026
18
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
ElasticBeanStalkに入門できなかった話
工藤花未
February 07, 2026
More Decks by 工藤花未
See All by 工藤花未
LINE×AWS×GoogleMapで今すぐ行けるお店Bot作ってみた
misosoup
0
18
Featured
See All Featured
エンジニアに許された特別な時間の終わり
watany
109
250k
Utilizing Notion as your number one productivity tool
mfonobong
4
620
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
2.2k
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.4k
Building a Scalable Design System with Sketch
lauravandoore
464
34k
Statistics for Hackers
jakevdp
799
230k
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
1
800
Prompt Engineering for Job Search
mfonobong
0
520
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
540
Code Review Best Practice
trishagee
74
20k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
50
10k
Transcript
Elastic Beanstalk に入門できなかった話 工藤花未
自己紹介 •名前:工藤花未 •出身:北海道札幌市 •趣味:バスケ観戦・ラーメン •分野:アーキ・AWS
Elastic Beanstalkとは? •アプリを簡単にデプロイできる おまかせ型 の サービス • EC2・ALB・AutoScaling・S3・RDS・Cloudwatchなどを自動構築 •GUIとCLIで利用可能 •
今回はGUIでリソースを作成
Elastic Beanstalkとは? アプリケーション 環境 環境 https://qiita.com/a_b_/items/3b49c5dd582dd13b8f04
やりたかった構成
動作確認
まずつくってみたもの
設定したこと •以下だけ! • アプリケーション・環境名 • デプロイしたいアプリケーションコード • プリセット選択 • サービスアクセス(ロールの設定)
• ネットワークの設定(VPC・サブネット)
アプリケーション・環境名設定
アプリケーションコード
サービスアクセス(ロール)の設定
ネットワーク設定
デプロイ
動作確認
触ってみて •リソース作成→デプロイまで10分で簡単! • 設定5分、リソース作成・デプロイ5分 • セキュリティグループなどもよしなにつくってくれる •作成されたリソースをたどっていくと勉強になる •Cloudformationが裏で動いていて、テンプレートが作成され る •EC2にSSH接続をしなくてもCLIからログを一括取得できる
None
None
触ってみて •作成された全量リソースを把握しづらくちょっと不便 • Cloudformationテンプレートを読み解くか、自分でリソース探すか •コストがかかる… •設定しないとすべてデフォルトになるのでハマることがある • SpringBootとElasticBeanstalkのデフォルトポートが合わない問題 • ALBのヘルスチェックパス設定
やりたかった構成
ALB設定
困っていること •ElasticBeanstalkとALBのヘルスチェックは通っているのに、 レスポンスが返ってこない…
試したこと •セキュリティグループのルールを確認(ALB・EC2) •EC2のログを確認(アプリはポート5000で起動) •ALBの設定を確認 • リスナーとルール確認(ALBが80で受けて、5000でEC2に送る) • ターゲットグループをポート5000で設定 • ヘルスチェックパスが正しいことも確認
•調べたところnginx ➜ SpringBoot のリバースプロキシ設定ミ スマッチ?
None
None