SlideShare uma empresa Scribd logo
1 de 2
-- http://aws.amazon.com --
Home > Your Account > Security Credentials

# Security Credentialsã ãらAccess Key ID, Secret Access Key㊮確認
Access Key ID: ****
Secret Access Key: ****

# X.509 Certificatesã*®ä½œæˆã€eダウンãƒãƒ¼ãƒ‰
cert-****.pem
pk-****.pem

-- AWS Management Console --
# AWS Management Console㠫移åã•ã€—ã€ãKey
PairsãM®ä½œæˆã€ 任意ãã®ãƒ•ã‚©ãƒ«ãƒ€ãK«æ ¼ç´ï¼ˆ~/ec2㐨仮定)
aws.pem

# CertificatesファイルをEC2ル転逫
cd ~/ec2
scp -i $EC2_HOME/aws.pem $EC2_PRIVATE_KEY root@ec2-
****.compute-1.amazonaws.com:/mnt
scp -i $EC2_HOME/aws.pem $EC2_CERT root@ec2-****.compute-1.amazonaws.com:/mnt



-- Ec2 --
# 一度è¨å®šã€™ã‚Œã2°ä¸è¦aãs§ãe™
# sshãã§EC2ãä«ãƒã‚°ã‚¤ãƒ³
ssh -i ec2KeyPairs.pem root@ec2-****.compute-1.amazonaws.com

# Amazon EC2 AMI Tools ão®ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«
rpm -ivh http://s3.amazonaws.com/ec2-downloads/ec2-ami-tools.noarch.rpm
# curl -O http://s3.amazonaws.com/ec2-downloads/ec2-ami-tools.noarch.rpm

# パス㠮確認
$ which ec2-bundle-vol
/usr/local/bin/ec2-bundle-vol

# Developper ToolsãbãらAmazon EC2 API Toolsをダウンãƒãƒ¼ãƒ‰
$ cd /usr/local/src
wget http://s3.amazonaws.com/ec2-downloads/ec2-api-
tools.zip&token=A80325AA4DAB186C80828ED5138633E3F49160D9
# ファイルを解凍
unzip ec2-api-tools.zip
# ec2-api-tools-1.3-45772ãA¨ã8„ã8†ãƒ•ã‚¡ã‚¤ãƒ«ã3«ã9ªã‚Šãã¾ãl™ã€‚
cd ec2-api-tools-1.3-45772/
mv bin /mnt
mv lib /mnt

# Javaランタイムをインストール
wget -O jre-6u17-linux-i586-rpm.bin http://javadl.sun.com/webapps/download/AutoDL?
BundleId=35674
# 実行権限を付与
chmod +x jre-6u17-linux-i586-rpm.bin
sudo ./jre-6u17-linux-i586-rpm.bin
# 上記ãe®ãƒã‚¤ãƒŠãƒªãƒ•ã‚¡ã‚¤ãƒ«ã‚’実行ãv
¢ãäŒç¶šãããã¾ãã™ã€‚ãã™ãã¹ã㦠Y(yes)を錸択㛗ãã¾ã¨™
#
RPMãç§ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«ãã—ã Ÿå ´åˆã§¯å®Ÿãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªãŸ¯ã‚·ãƒ³ãƒœãƒªãƒƒã‚¯ãƒ
ªãƒ³ã‚¯ã®Œå¼µã‚‰ã‚Œã‚¾ãƒ™ãƒ®ãŸ§ /usr/java/latest
㠨㵠„㠆ディレクトリ㼠«å¯¾ãð —ãÅ ¦Pathを通ãs—ã’¾ãM™ã€‚

# EC2ãã®ç’°å¢ƒå¤‰æ•°ãã®è¨å®š
$ vim ~/.bash_profile

export   EC2_HOME=/mnt
export   PATH=$PATH:$EC2_HOME/bin
export   EC2_PRIVATE_KEY=$EC2_HOME/pk-****.pem
export   EC2_CERT=$EC2_HOME/cert-****.pem
export   JAVA_HOME=/usr/java/latest

# 環境変数ãã®æ›´æ–°
source ~/.bash_profile

# ec2verã.¨å…¥åŠ›ãf—ã€j「1.3-45772 2009-10-31」ãs®ã‚ˆãM†ã€ «è¡¨ç¤ºã •ã‚Œã‚ŒãŠ
                                                                    »
°ãƒ‘スãã¯é€šãå£ãã¦ãã„ãã¾ã1™ã€‚
$ ec2ver
1.3-45772 2009-10-31



-- S3ã7¸ã‚¤ãƒ¡ãƒ¼ã‚¸ã‚’登録 --
# mntディレクトリ㙸移åã•
cd /mnt/

# イメージを作成㙙ã‚ã
ec2-bundle-vol -d /mnt --privatekey pk-****.pem --cert cert-****.pem --user ****
--fstab /etc/fstab
# Please specify a value for arch [i386]:ã* ¨èe žã ãã‚Œãt Ÿã‚‰ã- ã* ®ãp ¾ã ¾ãƒªã‚¿ãƒ¼ãƒ³

# S3ãa«ã‚¤ãƒ¡ãƒ¼ã‚¸ã‚’é€ ã‚ã
ec2-upload-bundle --bucket **** --manifest image.manifest.xml --access-key ****   --
secret-key ****

# イメージを登録ãe™ã‚ã
# ****㡯S3カ作成㌗ãeŸãƒã‚±ãƒƒãƒˆå
ec2-register ****/image.manifest.xml -n ****

# 自分ãt§ç™»éŒ²ãi—ãgŸAMIを確認㠗㠟ã*„時ã.¯
ec2-describe-images -o self

Mais conteúdo relacionado

Mais procurados

Heavy Web Optimization: Backend
Heavy Web Optimization: BackendHeavy Web Optimization: Backend
Heavy Web Optimization: BackendVõ Duy Tuấn
 
Making Joomla Insecure - Explaining security by breaking it
Making Joomla Insecure - Explaining security by breaking itMaking Joomla Insecure - Explaining security by breaking it
Making Joomla Insecure - Explaining security by breaking itTim Plummer
 
Sessions and cookies in php
Sessions and cookies in phpSessions and cookies in php
Sessions and cookies in phpPavan b
 
WordPress Security WordCamp OC 2013
WordPress Security WordCamp OC 2013WordPress Security WordCamp OC 2013
WordPress Security WordCamp OC 2013Brad Williams
 

Mais procurados (8)

Heavy Web Optimization: Backend
Heavy Web Optimization: BackendHeavy Web Optimization: Backend
Heavy Web Optimization: Backend
 
Add title shortcode
Add title shortcodeAdd title shortcode
Add title shortcode
 
20110820 header new style
20110820 header new style20110820 header new style
20110820 header new style
 
Introduksjon til web sikkerhet
Introduksjon til web sikkerhetIntroduksjon til web sikkerhet
Introduksjon til web sikkerhet
 
Locking down word press
Locking down word pressLocking down word press
Locking down word press
 
Making Joomla Insecure - Explaining security by breaking it
Making Joomla Insecure - Explaining security by breaking itMaking Joomla Insecure - Explaining security by breaking it
Making Joomla Insecure - Explaining security by breaking it
 
Sessions and cookies in php
Sessions and cookies in phpSessions and cookies in php
Sessions and cookies in php
 
WordPress Security WordCamp OC 2013
WordPress Security WordCamp OC 2013WordPress Security WordCamp OC 2013
WordPress Security WordCamp OC 2013
 

Destaque

O Mandado de Segurança por Meio Eletrônico
O Mandado de Segurança por Meio EletrônicoO Mandado de Segurança por Meio Eletrônico
O Mandado de Segurança por Meio EletrônicoAna Amelia Menna Barreto
 
The hard road to electronic invoicing
The hard road to electronic invoicingThe hard road to electronic invoicing
The hard road to electronic invoicingFriso de Jong
 
Guia Da Unidade Mabe Escola T2 Nov09
Guia Da Unidade Mabe Escola T2 Nov09Guia Da Unidade Mabe Escola T2 Nov09
Guia Da Unidade Mabe Escola T2 Nov09claudinapires
 
Joao Reis Sessao 7 Forum2 Gerais Especificos
Joao Reis Sessao 7 Forum2 Gerais EspecificosJoao Reis Sessao 7 Forum2 Gerais Especificos
Joao Reis Sessao 7 Forum2 Gerais EspecificosJoão Alves Dos Reis
 
Diseño de investigación. Unidad IV.
Diseño de investigación. Unidad IV.Diseño de investigación. Unidad IV.
Diseño de investigación. Unidad IV.María Carreras
 
El RincóN De Los Poemas
El RincóN De Los PoemasEl RincóN De Los Poemas
El RincóN De Los Poemasguestfe2a8d6
 
Relatório
RelatórioRelatório
Relatóriostassie
 
Marca-páginas mascota
Marca-páginas mascotaMarca-páginas mascota
Marca-páginas mascotasrvbest
 
Edith métodos arte y diseño en la actualidad
Edith métodos arte y diseño en la actualidadEdith métodos arte y diseño en la actualidad
Edith métodos arte y diseño en la actualidadEdithdlCruz
 
evaluación simce c naturales ii 6° 2014
 evaluación simce c naturales ii  6°   2014 evaluación simce c naturales ii  6°   2014
evaluación simce c naturales ii 6° 20147z7z1541
 
Portafolio evaluación sem3
Portafolio evaluación sem3Portafolio evaluación sem3
Portafolio evaluación sem3Misael78
 
Artigo: Retrospectiva e Expectativas 2010
Artigo: Retrospectiva e Expectativas 2010Artigo: Retrospectiva e Expectativas 2010
Artigo: Retrospectiva e Expectativas 2010Gleisi Hoffmann
 
deber de martha shigla
deber de martha shigladeber de martha shigla
deber de martha shiglashigla
 

Destaque (20)

O Mandado de Segurança por Meio Eletrônico
O Mandado de Segurança por Meio EletrônicoO Mandado de Segurança por Meio Eletrônico
O Mandado de Segurança por Meio Eletrônico
 
Diretoria Do Sintect 6
Diretoria Do Sintect  6Diretoria Do Sintect  6
Diretoria Do Sintect 6
 
The hard road to electronic invoicing
The hard road to electronic invoicingThe hard road to electronic invoicing
The hard road to electronic invoicing
 
Guia Da Unidade Mabe Escola T2 Nov09
Guia Da Unidade Mabe Escola T2 Nov09Guia Da Unidade Mabe Escola T2 Nov09
Guia Da Unidade Mabe Escola T2 Nov09
 
Joao Reis Sessao 7 Forum2 Gerais Especificos
Joao Reis Sessao 7 Forum2 Gerais EspecificosJoao Reis Sessao 7 Forum2 Gerais Especificos
Joao Reis Sessao 7 Forum2 Gerais Especificos
 
Diseño de investigación. Unidad IV.
Diseño de investigación. Unidad IV.Diseño de investigación. Unidad IV.
Diseño de investigación. Unidad IV.
 
El RincóN De Los Poemas
El RincóN De Los PoemasEl RincóN De Los Poemas
El RincóN De Los Poemas
 
Relatório
RelatórioRelatório
Relatório
 
S65
S65S65
S65
 
Mapa Metro
Mapa MetroMapa Metro
Mapa Metro
 
Atividades34avaliacao
Atividades34avaliacaoAtividades34avaliacao
Atividades34avaliacao
 
Marca-páginas mascota
Marca-páginas mascotaMarca-páginas mascota
Marca-páginas mascota
 
Edith métodos arte y diseño en la actualidad
Edith métodos arte y diseño en la actualidadEdith métodos arte y diseño en la actualidad
Edith métodos arte y diseño en la actualidad
 
evaluación simce c naturales ii 6° 2014
 evaluación simce c naturales ii  6°   2014 evaluación simce c naturales ii  6°   2014
evaluación simce c naturales ii 6° 2014
 
Boletim informativo de Araçatuba - Outubro de 2009
Boletim informativo de Araçatuba - Outubro de 2009Boletim informativo de Araçatuba - Outubro de 2009
Boletim informativo de Araçatuba - Outubro de 2009
 
Portafolio evaluación sem3
Portafolio evaluación sem3Portafolio evaluación sem3
Portafolio evaluación sem3
 
Act2 sudb
Act2 sudbAct2 sudb
Act2 sudb
 
Artigo: Retrospectiva e Expectativas 2010
Artigo: Retrospectiva e Expectativas 2010Artigo: Retrospectiva e Expectativas 2010
Artigo: Retrospectiva e Expectativas 2010
 
deber de martha shigla
deber de martha shigladeber de martha shigla
deber de martha shigla
 
software libre
software libresoftware libre
software libre
 

Semelhante a Ec2 Commands

The Dynamic Duo of Puppet and Vault tame SSL Certificates - Puppet Camps Cent...
The Dynamic Duo of Puppet and Vault tame SSL Certificates - Puppet Camps Cent...The Dynamic Duo of Puppet and Vault tame SSL Certificates - Puppet Camps Cent...
The Dynamic Duo of Puppet and Vault tame SSL Certificates - Puppet Camps Cent...Nick Maludy
 
The Dynamic Duo of Puppet and Vault tame SSL Certificates, Nick Maludy
The Dynamic Duo of Puppet and Vault tame SSL Certificates, Nick MaludyThe Dynamic Duo of Puppet and Vault tame SSL Certificates, Nick Maludy
The Dynamic Duo of Puppet and Vault tame SSL Certificates, Nick MaludyPuppet
 
Kafka security ssl
Kafka security sslKafka security ssl
Kafka security sslHeng-Xiu Xu
 
Hashitalks 2021 - How the Dynamic Duo of Vault and Puppet Tame SSL Certificates
Hashitalks 2021 - How the Dynamic Duo of Vault and Puppet Tame SSL CertificatesHashitalks 2021 - How the Dynamic Duo of Vault and Puppet Tame SSL Certificates
Hashitalks 2021 - How the Dynamic Duo of Vault and Puppet Tame SSL CertificatesNick Maludy
 
Introduction to InSpec and 1.0 release update
Introduction to InSpec and 1.0 release updateIntroduction to InSpec and 1.0 release update
Introduction to InSpec and 1.0 release updateAlex Pop
 
MongoDB World 2018: Low Hanging Fruit: Making Your Basic MongoDB Installation...
MongoDB World 2018: Low Hanging Fruit: Making Your Basic MongoDB Installation...MongoDB World 2018: Low Hanging Fruit: Making Your Basic MongoDB Installation...
MongoDB World 2018: Low Hanging Fruit: Making Your Basic MongoDB Installation...MongoDB
 
Travis and fastlane
Travis and fastlaneTravis and fastlane
Travis and fastlaneSteven Shen
 
Types of ssl commands and keytool
Types of ssl commands and keytoolTypes of ssl commands and keytool
Types of ssl commands and keytoolCheapSSLsecurity
 
Stopping the Hassle of SSH keys by using SSH certificates - Community Summit ...
Stopping the Hassle of SSH keys by using SSH certificates - Community Summit ...Stopping the Hassle of SSH keys by using SSH certificates - Community Summit ...
Stopping the Hassle of SSH keys by using SSH certificates - Community Summit ...Akeyless
 
AWS UG Warsaw & Serverless warsztatowo! 19.09.2019 | Eoin Shanaghy's presenta...
AWS UG Warsaw & Serverless warsztatowo! 19.09.2019 | Eoin Shanaghy's presenta...AWS UG Warsaw & Serverless warsztatowo! 19.09.2019 | Eoin Shanaghy's presenta...
AWS UG Warsaw & Serverless warsztatowo! 19.09.2019 | Eoin Shanaghy's presenta...Serverless User Group Poland
 
"Building a Production-Grade Serverless Deployment" - Eoin Shanaghy, CTO, fo...
"Building a Production-Grade Serverless Deployment"  - Eoin Shanaghy, CTO, fo..."Building a Production-Grade Serverless Deployment"  - Eoin Shanaghy, CTO, fo...
"Building a Production-Grade Serverless Deployment" - Eoin Shanaghy, CTO, fo...LCloud
 
EKS에서 Opentelemetry로 코드실행 모니터링하기 - 신재현 (인덴트코퍼레이션) :: AWS Community Day Online...
EKS에서 Opentelemetry로 코드실행 모니터링하기 - 신재현 (인덴트코퍼레이션) :: AWS Community Day Online...EKS에서 Opentelemetry로 코드실행 모니터링하기 - 신재현 (인덴트코퍼레이션) :: AWS Community Day Online...
EKS에서 Opentelemetry로 코드실행 모니터링하기 - 신재현 (인덴트코퍼레이션) :: AWS Community Day Online...AWSKRUG - AWS한국사용자모임
 
How to install ssl certificate from .pem
How to install ssl certificate from .pemHow to install ssl certificate from .pem
How to install ssl certificate from .pemcodeandyou forums
 
Application and Server Security
Application and Server SecurityApplication and Server Security
Application and Server SecurityBrian Pontarelli
 
EC2 AMI Factory with Chef, Berkshelf, and Packer
EC2 AMI Factory with Chef, Berkshelf, and PackerEC2 AMI Factory with Chef, Berkshelf, and Packer
EC2 AMI Factory with Chef, Berkshelf, and PackerGeorge Miranda
 
Making the secure communication between Server and Client with https protocol
Making the secure communication between Server and Client with https protocolMaking the secure communication between Server and Client with https protocol
Making the secure communication between Server and Client with https protocolArmenuhi Abramyan
 
WebLogic in Practice: SSL Configuration
WebLogic in Practice: SSL ConfigurationWebLogic in Practice: SSL Configuration
WebLogic in Practice: SSL ConfigurationSimon Haslam
 

Semelhante a Ec2 Commands (20)

The Dynamic Duo of Puppet and Vault tame SSL Certificates - Puppet Camps Cent...
The Dynamic Duo of Puppet and Vault tame SSL Certificates - Puppet Camps Cent...The Dynamic Duo of Puppet and Vault tame SSL Certificates - Puppet Camps Cent...
The Dynamic Duo of Puppet and Vault tame SSL Certificates - Puppet Camps Cent...
 
The Dynamic Duo of Puppet and Vault tame SSL Certificates, Nick Maludy
The Dynamic Duo of Puppet and Vault tame SSL Certificates, Nick MaludyThe Dynamic Duo of Puppet and Vault tame SSL Certificates, Nick Maludy
The Dynamic Duo of Puppet and Vault tame SSL Certificates, Nick Maludy
 
Kafka security ssl
Kafka security sslKafka security ssl
Kafka security ssl
 
Hashitalks 2021 - How the Dynamic Duo of Vault and Puppet Tame SSL Certificates
Hashitalks 2021 - How the Dynamic Duo of Vault and Puppet Tame SSL CertificatesHashitalks 2021 - How the Dynamic Duo of Vault and Puppet Tame SSL Certificates
Hashitalks 2021 - How the Dynamic Duo of Vault and Puppet Tame SSL Certificates
 
Introduction to InSpec and 1.0 release update
Introduction to InSpec and 1.0 release updateIntroduction to InSpec and 1.0 release update
Introduction to InSpec and 1.0 release update
 
MongoDB World 2018: Low Hanging Fruit: Making Your Basic MongoDB Installation...
MongoDB World 2018: Low Hanging Fruit: Making Your Basic MongoDB Installation...MongoDB World 2018: Low Hanging Fruit: Making Your Basic MongoDB Installation...
MongoDB World 2018: Low Hanging Fruit: Making Your Basic MongoDB Installation...
 
Java security
Java securityJava security
Java security
 
Rhel5
Rhel5Rhel5
Rhel5
 
Travis and fastlane
Travis and fastlaneTravis and fastlane
Travis and fastlane
 
Types of ssl commands and keytool
Types of ssl commands and keytoolTypes of ssl commands and keytool
Types of ssl commands and keytool
 
Stopping the Hassle of SSH keys by using SSH certificates - Community Summit ...
Stopping the Hassle of SSH keys by using SSH certificates - Community Summit ...Stopping the Hassle of SSH keys by using SSH certificates - Community Summit ...
Stopping the Hassle of SSH keys by using SSH certificates - Community Summit ...
 
AWS UG Warsaw & Serverless warsztatowo! 19.09.2019 | Eoin Shanaghy's presenta...
AWS UG Warsaw & Serverless warsztatowo! 19.09.2019 | Eoin Shanaghy's presenta...AWS UG Warsaw & Serverless warsztatowo! 19.09.2019 | Eoin Shanaghy's presenta...
AWS UG Warsaw & Serverless warsztatowo! 19.09.2019 | Eoin Shanaghy's presenta...
 
"Building a Production-Grade Serverless Deployment" - Eoin Shanaghy, CTO, fo...
"Building a Production-Grade Serverless Deployment"  - Eoin Shanaghy, CTO, fo..."Building a Production-Grade Serverless Deployment"  - Eoin Shanaghy, CTO, fo...
"Building a Production-Grade Serverless Deployment" - Eoin Shanaghy, CTO, fo...
 
EKS에서 Opentelemetry로 코드실행 모니터링하기 - 신재현 (인덴트코퍼레이션) :: AWS Community Day Online...
EKS에서 Opentelemetry로 코드실행 모니터링하기 - 신재현 (인덴트코퍼레이션) :: AWS Community Day Online...EKS에서 Opentelemetry로 코드실행 모니터링하기 - 신재현 (인덴트코퍼레이션) :: AWS Community Day Online...
EKS에서 Opentelemetry로 코드실행 모니터링하기 - 신재현 (인덴트코퍼레이션) :: AWS Community Day Online...
 
How to install ssl certificate from .pem
How to install ssl certificate from .pemHow to install ssl certificate from .pem
How to install ssl certificate from .pem
 
Application and Server Security
Application and Server SecurityApplication and Server Security
Application and Server Security
 
Securing your web apps now
Securing your web apps nowSecuring your web apps now
Securing your web apps now
 
EC2 AMI Factory with Chef, Berkshelf, and Packer
EC2 AMI Factory with Chef, Berkshelf, and PackerEC2 AMI Factory with Chef, Berkshelf, and Packer
EC2 AMI Factory with Chef, Berkshelf, and Packer
 
Making the secure communication between Server and Client with https protocol
Making the secure communication between Server and Client with https protocolMaking the secure communication between Server and Client with https protocol
Making the secure communication between Server and Client with https protocol
 
WebLogic in Practice: SSL Configuration
WebLogic in Practice: SSL ConfigurationWebLogic in Practice: SSL Configuration
WebLogic in Practice: SSL Configuration
 

Último

Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 

Último (20)

Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 

Ec2 Commands

  • 1. -- http://aws.amazon.com -- Home > Your Account > Security Credentials # Security Credentialsã ãらAccess Key ID, Secret Access Key㊮確認 Access Key ID: **** Secret Access Key: **** # X.509 Certificatesã*®ä½œæˆã€eダウンãƒãƒ¼ãƒ‰ cert-****.pem pk-****.pem -- AWS Management Console -- # AWS Management Console㠫移åã•ã€—ã€ãKey PairsãM®ä½œæˆã€ 任意ãã®ãƒ•ã‚©ãƒ«ãƒ€ãK«æ ¼ç´ï¼ˆ~/ec2㐨仮定) aws.pem # CertificatesファイルをEC2ル転逫 cd ~/ec2 scp -i $EC2_HOME/aws.pem $EC2_PRIVATE_KEY root@ec2- ****.compute-1.amazonaws.com:/mnt scp -i $EC2_HOME/aws.pem $EC2_CERT root@ec2-****.compute-1.amazonaws.com:/mnt -- Ec2 -- # 一度è¨å®šã€™ã‚Œã2°ä¸è¦aãs§ãe™ # sshãã§EC2ãä«ãƒã‚°ã‚¤ãƒ³ ssh -i ec2KeyPairs.pem root@ec2-****.compute-1.amazonaws.com # Amazon EC2 AMI Tools ão®ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ« rpm -ivh http://s3.amazonaws.com/ec2-downloads/ec2-ami-tools.noarch.rpm # curl -O http://s3.amazonaws.com/ec2-downloads/ec2-ami-tools.noarch.rpm # パス㠮確認 $ which ec2-bundle-vol /usr/local/bin/ec2-bundle-vol # Developper ToolsãbãらAmazon EC2 API Toolsをダウンãƒãƒ¼ãƒ‰ $ cd /usr/local/src wget http://s3.amazonaws.com/ec2-downloads/ec2-api- tools.zip&token=A80325AA4DAB186C80828ED5138633E3F49160D9 # ファイルを解凍 unzip ec2-api-tools.zip # ec2-api-tools-1.3-45772ãA¨ã8„ã8†ãƒ•ã‚¡ã‚¤ãƒ«ã3«ã9ªã‚Šãã¾ãl™ã€‚ cd ec2-api-tools-1.3-45772/ mv bin /mnt mv lib /mnt # Javaランタイムをインストール wget -O jre-6u17-linux-i586-rpm.bin http://javadl.sun.com/webapps/download/AutoDL? BundleId=35674 # 実行権限を付与 chmod +x jre-6u17-linux-i586-rpm.bin sudo ./jre-6u17-linux-i586-rpm.bin # 上記ãe®ãƒã‚¤ãƒŠãƒªãƒ•ã‚¡ã‚¤ãƒ«ã‚’実行ãv ¢ãäŒç¶šãããã¾ãã™ã€‚ãã™ãã¹ã㦠Y(yes)を錸択㛗ãã¾ã¨™ # RPMãç§ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«ãã—ã Ÿå ´åˆã§¯å®Ÿãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªãŸ¯ã‚·ãƒ³ãƒœãƒªãƒƒã‚¯ãƒ ªãƒ³ã‚¯ã®Œå¼µã‚‰ã‚Œã‚¾ãƒ™ãƒ®ãŸ§ /usr/java/latest
  • 2. 㠨㵠„㠆ディレクトリ㼠«å¯¾ãð —ãÅ ¦Pathを通ãs—ã’¾ãM™ã€‚ # EC2ãã®ç’°å¢ƒå¤‰æ•°ãã®è¨å®š $ vim ~/.bash_profile export EC2_HOME=/mnt export PATH=$PATH:$EC2_HOME/bin export EC2_PRIVATE_KEY=$EC2_HOME/pk-****.pem export EC2_CERT=$EC2_HOME/cert-****.pem export JAVA_HOME=/usr/java/latest # 環境変数ãã®æ›´æ–° source ~/.bash_profile # ec2verã.¨å…¥åŠ›ãf—ã€j「1.3-45772 2009-10-31」ãs®ã‚ˆãM†ã€ «è¡¨ç¤ºã •ã‚Œã‚ŒãŠ » °ãƒ‘スãã¯é€šãå£ãã¦ãã„ãã¾ã1™ã€‚ $ ec2ver 1.3-45772 2009-10-31 -- S3ã7¸ã‚¤ãƒ¡ãƒ¼ã‚¸ã‚’登録 -- # mntディレクトリ㙸移åã• cd /mnt/ # イメージを作成㙙ã‚ã ec2-bundle-vol -d /mnt --privatekey pk-****.pem --cert cert-****.pem --user **** --fstab /etc/fstab # Please specify a value for arch [i386]:ã* ¨èe žã ãã‚Œãt Ÿã‚‰ã- ã* ®ãp ¾ã ¾ãƒªã‚¿ãƒ¼ãƒ³ # S3ãa«ã‚¤ãƒ¡ãƒ¼ã‚¸ã‚’é€ ã‚ã ec2-upload-bundle --bucket **** --manifest image.manifest.xml --access-key **** -- secret-key **** # イメージを登録ãe™ã‚ã # ****㡯S3カ作成㌗ãeŸãƒã‚±ãƒƒãƒˆå ec2-register ****/image.manifest.xml -n **** # 自分ãt§ç™»éŒ²ãi—ãgŸAMIを確認㠗㠟ã*„時ã.¯ ec2-describe-images -o self