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
ITインフラ集会 2025年5月24日|Koty-Mousa
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Koty-Mousa (Classmethod)
May 24, 2025
510
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
ITインフラ集会 2025年5月24日|Koty-Mousa
Koty-Mousa (Classmethod)
May 24, 2025
More Decks by Koty-Mousa (Classmethod)
See All by Koty-Mousa (Classmethod)
テクサポの便利な使い方と、「ペイン」を読み取る大切さ【DevelopersIO 2025 FUKUOKA】
kotymousacm
0
300
ITインフラ集会 2024年11月9日|Koty-Mousa
kotymousacm
0
450
技術しばり!LT大会|Koty-Mousa
kotymousacm
0
1k
Featured
See All Featured
The agentic SEO stack - context over prompts
schlessera
0
970
Ruling the World: When Life Gets Gamed
codingconduct
0
390
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
530
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
1
620
Principles of Awesome APIs and How to Build Them.
keavy
128
18k
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
510
Marketing to machines
jonoalderson
1
5.9k
Unsuck your backbone
ammeep
672
58k
Building Adaptive Systems
keathley
44
3.2k
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9.2k
The Language of Interfaces
destraynor
162
27k
Transcript
Koty-Mousa ⽮坂幸太郎 Group 記事執筆中! VPCに属するサービスと 属さないサービスは どう違うのだろうか? 2025年 5⽉ 24⽇
アノテーション株式会社 テクニカルサポートゾーン General チーム
Koty-Mousa ⽮坂幸太郎 • ⼤分県出⾝‧在住 / 福岡市にも⾃宅 • 福岡オフィス 所属 •
バーチャルワールドでも⽣活 アノテーション株式会社 コティ‧ムーサ やさか こうたろう Group 記事執筆中! エンジニア統括部 テクニカルサポートゾーン General チーム IPA ITパスポート‧IPA 基本情報技術者 英検 2級 技術の⼒で、幸せの輪を広げる 今回は、Koty-Mousaが 個⼈的に参加しています
アノテーション株式会社 『らしく働く、らしく生きる』 “Work and live as you like”
to be_ 『オペレーション・エクセレンス』 “Operations Excellence” “Operational Excellence” + Group 記事執筆中!
クラスメソッド株式会社 オープンな発想と⾼い技術⼒により、 すべての⼈々の創造活動に貢献し続ける
本スライド‧参加レポート は 後⽇ DevelopersIO(ブログ)で公開します ご注意事項 Koty-Mousa ⽮坂幸太郎 dev.classmethod.jp/author/koty-mousa/
None
どうして RDS と DynamoDB は接続⽅法が異なるのか? | DevelopersIO https://dev.classmethod.jp/articles/koty-mousa-why-rds-dynamodb-difference/
Amazon VPC Amazon Virtual Private Cloud AWS上の独⾃仮想ネットワーク
Amazon VPC 独⾃の IP領域を ⽤意できる
VPC に属する/属さないサービスがある
VPC に属する/属さないサービスがある VPCに属する VPCに属さない EC2 RDS Lambda*1 S3 DynamoDB Lambda*1
*1: Lambda は設定により、VPCにアタッチするか選ぶことができます。 *2: EFS のマウントターゲットは、VPCを指定してアタッチする必要があります。 ご注意:これらは “マネージドサービスであるかどうか”を⽰したものではありません CloudFormation CloudFront EFS*2 ECS EKS
VPC に属する/属さないサービスの違い 他リソースとの接続の仕組みを VPCの仕組みを使うか、 サービス⾃体で⽤意するか (Koty の個⼈的⾒解です)
VPC に属するサービス同⼠を接続 EC2⾃体はインターネット 接続可能
RDS 作成画⾯ EC2 VPC サブネット ITインフラ集会 2024/11/9
RDS と EC2の接続 ITインフラ集会 2024/11/9 改変 mysql -h database-1.c5gqc2ww2y96.ap-northeast-1.rds.amazonaws.com -P
3306 -u admin -p -h: ホスト名(RDSのエンドポイント) -P: ポート番号(3306はMySQLのデフォルトポート) -u: ユーザー名(admin) -p: パスワード⼊⼒を求める オンプレミスと同じように DNS / IPアドレス で接続する (AWSではIPアドレスでの接続は⾮推奨)
IPアドレスでもつながる(⾮推奨) mysql -h 10.0.2.17 -P 3306 -u admin -p ご注意:RDSへの接続をIPアドレスで⾏うことは⾮推奨です。
> 基になる IP アドレスは変わる可能性があるため (フェイルオーバーなど)、DB インスタンスに接続するときは DNS 名を使⽤することを強くお勧めします。 ‒ https://aws.amazon.com/jp/rds/faqs/ IPアドレスが10から始まる →プライベートIP (内部IP) インターネットに出ない
VPC に属するサービス同⼠を接続 VPCの内部だけで ルーティングされる
VPCに属する & 属さないサービスを接続 EC2⾃体はインターネット 接続可能
VPCに属する & 属さないサービスを接続 S3の外部向けに 公開されている エンドポイントが 表⽰される
VPCに属する & 属さないサービスを接続 通信はVPC外に出る
S3バケットでHTTPサイト公開 S3の設定で制御
S3バケットでHTTPサイト公開 LocalPC ~ % nslookup koty-XXXX-bucket-web.s3-website-ap-northeast-1.amazonaws.com Server: 127.0.2.2 Address: 127.0.2.2#53
Non-authoritative answer: koty-XXXX-bucket-web.s3-website-ap-northeast-1.amazonaws.com canonical name = s3-website-ap-northeast-1.amazonaws.com. Name: s3-website-ap-northeast-1.amazonaws.com Address: 3.5.154.182 Name: s3-website-ap-northeast-1.amazonaws.com Address: 52.219.162.43 Name: s3-website-ap-northeast-1.amazonaws.com Address: 52.219.150.163 ...
VPC に属さないサービス同⼠を接続
VPC に属する/属さないサービスの違い 他リソースとの接続の仕組みを VPCの仕組みを使うか、 サービス⾃体で⽤意するか (Koty の個⼈的⾒解です)
セキュリティ対策、⼤事! Koty-Mousa ⽮坂幸太郎 • 必要最低限のリソースのみ許可するようにしましょう! ◦ (最⼩権限の原則) • 今⽇は触れませんでしたが、 IAM
による権限設定も⼤切です!
Koty-Mousa ⽮坂幸太郎 dev.classmethod.jp/author/koty-mousa/ ありがとう ございました!
Koty-Mousa ⽮坂幸太郎 VPCに属するサービスと 属さないサービスは どう違うのだろうか? 2025年 5⽉ 24⽇