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
170223_aws_handson
Search
tutida
March 22, 2017
Technology
160
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
170223_aws_handson
tutida
March 22, 2017
Transcript
24 slides
2017/03/23 ハンズオン
本日のハンズオン ① 仮想サーバにSSH接続 ② AmazonS3を使ったファイル取得・閲覧 2
① 仮想サーバにSSH接続 1. VPC, Subet, Internet Gatewayの設置 1. VPCの作成 2.
Subnetの作成 3. Internet GatewayをVPCに設置 4. VPCのルートテーブルにInternet Gatewayを追加 2. EC2インスタンス(仮想サーバ)の起動 1. AMIでAmazon Linux, t2.micro を選択 2. VPC,Subnetを選択・「自動割り当てパブリックIP」を有効 3. 細かい設定はデフォルトのまま進める 4. Key Pairを新規に作成しローカルにダウンロード 3. EC2インスタンスへSSH接続 1. 割り当てられたIPアドレスの確認 2. ダウンロードしたKey PairとIPアドレスを使ってSSH接続 1. ユーザは”ec2-user” 参考リンク:http://dev.classmethod.jp/cloud/aws/aws-beginner-ec2-ssh/ 3
① 仮想サーバにSSH接続 1.VPC, Subnet, Internet Gatewayの設置 4
① 仮想サーバにSSH接続 1.VPC, Subnet, Internet Gatewayの設置 VPCの作成 5
① 仮想サーバにSSH接続 1.VPC, Subnet, Internet Gatewayの設置 Subnetの作成 6
① 仮想サーバにSSH接続 1.VPC, Subnet, Internet Gatewayの設置 Internet GatewayをVPCに設置 7
① 仮想サーバにSSH接続 1.VPC, Subnet, Internet Gatewayの設置 VPCのルートテーブルにInternet Gatewayを追加 8
① 仮想サーバにSSH接続 2.EC2インスタンス(仮想サーバ)の起動 9
① 仮想サーバにSSH接続 2.EC2インスタンス(仮想サーバ)の起動 AMIでAmazon Linux, t2.micro を選択 10
① 仮想サーバにSSH接続 2.EC2インスタンス(仮想サーバ)の起動 VPC,Subnetを選択・「自動割り当てパブリックIP」を有効 11
① 仮想サーバにSSH接続 2.EC2インスタンス(仮想サーバ)の起動 細かい設定はデフォルトのまま進める 12
① 仮想サーバにSSH接続 2.EC2インスタンス(仮想サーバ)の起動 Key Pairを新規に作成しローカルにダウンロード 13
① 仮想サーバにSSH接続 2.EC2インスタンス(仮想サーバ)の起動 14
① 仮想サーバにSSH接続 3.EC2インスタンスへSSH接続 15
① 仮想サーバにSSH接続 3.EC2インスタンスへSSH接続 割り当てられたIPアドレスの確認 16
① 仮想サーバにSSH接続 3.EC2インスタンスへSSH接続 ダウンロードしたKey PairとIPアドレスを使ってSSH接続 ユーザは”ec2-user”としてログイン 参考リンク:http://dev.classmethod.jp/cloud/aws/aws-beginner-ec2-ssh/ ・Macの方はTerminal ・Windowsの方はTera Termなど
17
② AmazonS3を使ったファイル取得・閲覧 1. S3 Bucketの作成 1. 好きな名前でBucketを作成(AWS上で一意な名前の必要あり) 2. 静的Webサイトホスティングの設定 1.
タブ「プロパティ」 > “ Static website hosting ” > “このバケットを使用してウェブサイトをホストする” > インデックスドキュメント “index.html” 2. タブ「アクセス権限」 > バケットポリシー 3. Bucket内部のアクセスしたいオブジェクト「リンク」をクリック 18 { "Version": "2012-10-17", "Statement": [ { "Sid": "PublicReadForGetBucketObjects", "Effect": "Allow", "Principal": "*", "Action": [ "s3:GetObject" ], "Resource": [ “arn:aws:s3:::バケット名/*" ] } ] }
1.S3 Bucketの作成 19 ② AmazonS3を使ったファイル取得・閲覧
1.S3 Bucketの作成 20 ② AmazonS3を使ったファイル取得・閲覧
1.S3 Bucketの作成 ”index.html”という名前のファイルを以下の内容で作成して、 S3にアップロードしてみましょう 21 ② AmazonS3を使ったファイル取得・閲覧 Index.html <!DOCTYPE html>
<html> <head> <meta charset="UTF-8"> <title>S3 Sample</title> </head> <body> <p>S3 Sample</p> </body> </html>
2. 静的Webサイトホスティングの設定 1. タブ「プロパティ」 > “ Static website hosting ”
> “このバケットを使用してウェブサイトをホストする” > インデックスドキュメント “index.html 22 ② AmazonS3を使ったファイル取得・閲覧
2. 静的Webサイトホスティングの設定 2. タブ「アクセス権限」 > バケットポリシー { "Version": "2012-10-17", "Statement":
[ { "Sid": "PublicReadForGetBucketObjects", "Effect": "Allow", "Principal": "*", "Action": [ "s3:GetObject" ], "Resource": [ “arn:aws:s3:::バケット名/*" ] } ] } 23 ② AmazonS3を使ったファイル取得・閲覧
2. 静的Webサイトホスティングの設定 3. Bucket内部のアクセスしたいオブジェクト「リンク」をクリック 24 ② AmazonS3を使ったファイル取得・閲覧
More Decks by tutida
See All by tutida
仕様の達成度とは別の軸も大事にしたい~OSEKKAI文化で作るプロジェクトの納得感~
tutida
0
180
Larvel Octane を AWS Fargate で動かしてみる
tutida
2
1.4k
Laravel x Inertia.js 現代のモノリス によるお手軽 SPA 開発
tutida
4
3.9k
JAWS DAYS 2020 | サーバレスの新しいデータストアの選択肢 S3 Select の魅力
tutida
2
2.8k
180405_AWS_Deep_Night_in_Fukuoka_part2.pdf
tutida
0
180
event
tutida
0
200
[ fukuoka.php LT ] 新人のPHPExcel奮闘記
tutida
0
1k
Other Decks in Technology
See All in Technology
生成AIによる情報システムへのインパクト (2026年11月版)
taka_aki
0
120
社内アプリ基盤「Quartz」による、 非エンジニアとAIに本番デプロイを 任せても壊れないプラットフォームの設計
staka121
PRO
1
250
Amazon EFS のマルウェアスキャンをClamAV で自前実装したら苦労した話
mtmtfactory01
0
130
パスワードのない鍵で、 データを手元に置く
ginjihayashi
0
400
AI-Ready なデータ基盤ってなに? & 新卒未経験が、いま考えていること
imuta
0
1.1k
認知の質も文化醸成も。数年取り組んで見えてきた技術広報のKPI設計 / Tech PR KPIs: Lessons on Awareness Quality and Culture After Several Years
bitkey
PRO
0
250
FPGAでアクティブセンシングがやりたくてカメラモジュールを自作した話
ryuz88
0
130
Go でトランザクション、どう書いてますか?
knwoop
2
640
SBOM 生成ツールで 2026 Minimum Elements はどこまで満たせるのか
gokken
0
170
個人ASを取得して、自宅Kubernetes上のVMをグローバルIPで公開した話
munenick
0
230
LLMごとの文章力を測ってみた話
yoshimura_datam
0
120
認知負荷の減らし方 ~開発にも日常業務にも活かせるノウハウ~
minorun365
PRO
18
16k
Featured
See All Featured
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
2.3k
How GitHub (no longer) Works
holman
316
150k
ラッコキーワード サービス紹介資料
rakko
5
6M
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
3
3.9k
Highjacked: Video Game Concept Design
rkendrick25
PRO
2
600
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
1
320
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
62k
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
1
490
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
56k
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
760
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.7k
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
560