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
CloudShell VPC environmentはいいぞ
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
kayo ito
November 13, 2024
Technology
130
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
CloudShell VPC environmentはいいぞ
2024/11/13開催のLT大放出会にて登壇した際の資料です。
kayo ito
November 13, 2024
Other Decks in Technology
See All in Technology
パスキーの自動テストはどこまでいけるのか
teamlab
PRO
0
200
スプシの手作業からの解脱 ~更新はClaude Codeに、見せ方と使い方はGASアプリに任せる~
kentarofujii
0
150
Getting Started with Google Antigravity
glaforge
0
300
事業成長とデータ活用を止めないためのマネジメントへ挑戦
hiracky16
0
390
Classmethod Company Deck
satoshi7
1
680
子育てエンジニアの可処分時間が減っても成長を諦めない戦い方
sudoakiy
6
4.6k
ソフトウェア ファクトリー - 再現性のあるソフトウェアの工場づくり / Software factory
iktakahiro
6
4.9k
大型犬好きによるPugの紹介
yamanoku
1
160
QA4AI 2026-Oct 生成AI時代の品質保証
tokuty
1
860
二歩目のフロントエンド・ウェブアクセシビリティ
camiha
2
570
初海外で注意すべきこと12選!!!安全快適なre:invent生活にするために
yuuuuuuu168
1
160
Benchmarking Disaggregated Serving on vLLM + Dynamo with a Real Coding-Agent Workload
nttcom
1
190
Featured
See All Featured
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
280
StorybookのUI Testing Handbookを読んだ
zakiyama
31
7k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
330
Odyssey Design
rkendrick25
PRO
2
870
Designing for Performance
lara
612
70k
Rails Girls Zürich Keynote
gr2m
96
14k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
300
Building the Perfect Custom Keyboard
takai
2
910
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
2
950
Done Done
chrislema
187
17k
Agile that works and the tools we love
rasmusluckow
331
22k
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
320
Transcript
© 2024 Toshiba Digital Solutions Corporation 東芝デジタルソリューションズ株式会社 伊藤佳代 2024.11.13 CloudShell
VPC environmentはいいぞ
2 © 2024 Toshiba Digital Solutions Corporation 自己紹介 伊藤 佳代(いとう
かよ) 東芝デジタルソリューションズ株式会社 業務内容 ⚫ AWS基盤設計・構築 ⚫ 機械工学科出身 ⚫ 2021年入社 4年目 ⚫ Japan AWS Jr. Champions 2024 ⚫ 趣味:旅行、テニス、サウナ ⚫ 好物:フライドポテト ⚫ AWS Systems Manager 好きなAWSサービス
3 © 2024 Toshiba Digital Solutions Corporation 本日お話する内容 CloudShell VPC
environmentとは? CloudShell VPC environmentを知ったきっかけ “CloudShell” vs “CloudShell VPC environment” 制限事項 まとめ 01 02 03 04 05
4 © 2024 Toshiba Digital Solutions Corporation CloudShell VPC environmentとは?
• CloudShell で作成できる仮想プライベートクラウド(VPC)環境 • VPC、サブネット、セキュリティグループを割り当て、ネットワーク設定をCloudShell に 継承して使用することができる • 2024/6に公開された比較的新しめのサービス • https://aws.amazon.com/jp/about-aws/whats-new/2024/06/aws-CloudShell-amazon-virtual- private-cloud/ • https://docs.aws.amazon.com/CloudShell/latest/userguide/using-cshell-in-vpc.html
5 © 2024 Toshiba Digital Solutions Corporation CloudShell VPC environmentを知ったきっかけ
• RDSへpsqlで接続したい • 踏み台サーバは配置していないので、踏み台サーバから接続することができない Virtual private cloud (VPC) Public subnet Private subnet ECS Public subnet ALB RDS 踏み台サーバを配置する? いやでも費用がなあ ECS Execでログインする? いやでもpsql標準で入ってないんだよ なあ RDSへpsqlで接続したい アプリチーム 私
6 © 2024 Toshiba Digital Solutions Corporation CloudShell VPC environmentを知ったきっかけ
• RDSへpsqlで接続したい • 踏み台サーバは配置していないので、踏み台サーバから接続することができない Virtual private cloud (VPC) Public subnet Private subnet ECS Public subnet ALB RDS 踏み台サーバを配置する? いやでも費用がなあ ECS Execでログインする? いやでもpsql標準で入ってないんだよ なあ RDSへpsqlで接続したい アプリチーム CloudShell VPC environment っていうのがあるよ! Psqlも標準で入ってるよ! 先輩 私
7 © 2024 Toshiba Digital Solutions Corporation CloudShell VPC environmentを作成してみる
• CloudShell VPCを作成して接続を試みることに • 構成はCloudShell VPCからRDSへの接続を確認したかったので必要最低限 Virtual private cloud (VPC) Public subnet Private subnet VPC CloudShell ENI ECS Public subnet RDS ALB Security group ①環境の指定 ・VPC ・サブネット ・セキュリティグループ ②自動的にENI払い出し 払いだされたENIに指定したセキュリティ グループが関連付けられている CloudShell VPC作成の流れ
8 © 2024 Toshiba Digital Solutions Corporation CloudShell VPC environmentを作成してみる
• CloudShellに接続し、アクション→Create VPC environemtから作成 • 作成後、プライベートアドレスを持っていることを確認
9 © 2024 Toshiba Digital Solutions Corporation CloudShell VPC environmentを作成してみる
いざpsqlで接続
10 © 2024 Toshiba Digital Solutions Corporation CloudShell VPC environmentを作成してみる
削除時は、アクション→削除でOK
11 © 2024 Toshiba Digital Solutions Corporation “CloudShell” vs “CloudShell
VPC environment” by 伊藤 vs VPC subnet AWS Cloud ENI AWS CloudShell 1台のVM的に動作 VPC subnet AWS Cloud AWS CloudShell Aws cli、 シェルコマンド実行 EC2 項目 CloudShell CloudShell VPC environment 用途 リソース作成・管理、スクリプト実行 VPC内リソース管理、踏み台サーバの代替 リソースへの アクセス セキュリティグループでCloudShellからのアクセ ス許可を設定することでアクセス可能 セキュリティグループで関連付けられるのでプライベート サブネット内、VPC内のリソースに直接アクセス可能 インターネット へのアクセス 可能 インターネットへの経路を持つサブネットで起動・セキュリ ティグループの許可等の設定必要
12 © 2024 Toshiba Digital Solutions Corporation CloudShell VPC environmentの制限事項
• IAMプリンシパル毎に最大2つの環境が作成可能 • 同じサブネットには1つのみの環境が作成可能 • 1 つの環境につき最大 5 つのセキュリティグループを割りあて可能 • 「アクション」メニューからのデータのアップロード・ダウンロードは不可なのでS3などを経由して行う 必要がある(※1) • 永続的なストレージは使用不可なのでS3などのストレージに保存する必要がある(※1) • インターネットに出たい場合配置するプライベートサブネットがインターネットへのアウトバウンドの ルートを持っている必要がある • パブリックサブネットに配置してもパブリックIPは割り当てられないためENIにEIPを関連付ける必 要がある ※1:S3への経路設定は忘れずに
13 © 2024 Toshiba Digital Solutions Corporation まとめ ◼ CloudShell
VPC environmentの概要 ➢ サブネット上で起動できるCloudShell ➢ CloudShellから直接VPC内のリソースへのアクセスが可能で、ルートテーブルやセキュ リティグループに基づいた制限が適用される ◼ 注意点 ➢ CloudShell VPC environmentの制限事項 ◼ 所感 ➢ サクッと作れるしプレインストールされているコマンドも多いので結構便利 ➢ 制限事項が多いので、まずは開発環境や検証環境などから試してみるのがよさそう
14 © 2024 Toshiba Digital Solutions Corporation 興味ある方はぜひトライしてみてください! まとめ ◼
CloudShell VPC environmentの概要 ➢ サブネット上で起動できるCloudShell ➢ CloudShellから直接VPC内のリソースへのアクセスが可能で、ルートテーブルやセキュ リティグループに基づいた制限が適用される ◼ 注意点 ➢ CloudShell VPC environmentの制限事項 ◼ 所感 ➢ サクッと作れるしプレインストールされているコマンドも多いので結構便利 ➢ 制限事項が多いので、まずは開発環境や検証環境などから試してみるのがよさそう
None