Line: 1 to 1 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Amazon's Elastic Compute Cloud (EC2) | |||||||||||
Added: | |||||||||||
> > | |||||||||||
IntroductionAmazon's Elastic Compute Cloud is a service which allows users to purchase computing resources by the hour in the form of virtual machine 'instances'. These instances are sold in many different sizes and under several purchasing options. Each instance is loaded with an Amazon Machine Image (AMI), a package including an OS and accompanying software. These can be chosen from a group of presets or customized by the user. When launching an instance, a startup script can be provided so that a task may be started immediately. Alternatively, the user may ssh to an instance and issue commands that way. Running instances may be monitored using Amazon's CloudWatch tools which can provide useful metrics such as CPU and network usage. | |||||||||||
Line: 116 to 119 | |||||||||||
CLI tools | |||||||||||
Added: | |||||||||||
> > | In addition to the management console, there are also command line tools available. These allow you to launch and manage instances all from the command line. It also allow for easier handling of large, complex groups of instances through scripting. This section will walk through the use of the command line tools.
Setting up the CLI tools
Using the CLI tools
Working from an InstanceThis section presents some useful information about ways to use EC2 instancesUser Data Scripts
#!/bin/bash sudo yum -y update curl -L https://get.rvm.io | bash -s stable --ruby source /home/ec2-user/.rvm/scripts/rvm wget www.cs.ubc.ca/~hutter/AC_on_the_Cloud.tar.gz tar xzvf AC_on_the_Cloud.tar.gz cd AC_on_the_Cloud ruby scripts/blackbox_evaluator.rb -f Accessing Instance Metadata
GET http://169.254.169.254/latest/user-data GET http://169.254.169.254/latest/meta-data/ami-id GET http://169.254.169.254/latest/meta-data/instance-type GET http://169.254.169.254/latest/meta-data/instance-id
CLI Tools on instances
| ||||||||||
-- Main.geschd - 08 Aug 2013 |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Amazon's Elastic Compute Cloud (EC2)Introduction | ||||||||
Line: 99 to 99 | ||||||||
| ||||||||
Added: | ||||||||
> > | ||||||||
Set up and run the configuration/validation pipeline | ||||||||
Added: | ||||||||
> > |
| |||||||
CLI tools |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Amazon's Elastic Compute Cloud (EC2)Introduction | ||||||||
Line: 17 to 17 | ||||||||
| ||||||||
Deleted: | ||||||||
< < |
| |||||||
Line: 33 to 32 | ||||||||
Deleted: | ||||||||
< < | ||||||||
Added: | ||||||||
> > | ||||||||
| ||||||||
Deleted: | ||||||||
< < |
| |||||||
Line: 48 to 46 | ||||||||
Added: | ||||||||
> > | ||||||||
Create the micro instance | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Line: 79 to 88 | ||||||||
Added: | ||||||||
> > | ||||||||
Connect to the micro instance | ||||||||
Added: | ||||||||
> > |
| |||||||
Set up and run the configuration/validation pipeline |
Line: 1 to 1 | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Amazon's Elastic Compute Cloud (EC2)Introduction | |||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||
< < | Amazon's Elastic Compute Cloud is a service which allows users to purchase computing resources by the hour in the form of virtual machine 'instances'. These instances are sold in many different sizes and under several purchasing options. Each instance is loaded with an Amazon Machine Image (AMI), a package including an OS and accompanying software. These can be chosen from a group of presets or customized by the user. When launching an instance, a startup script can be provided so that a task may be started immediately. Alternatively, the user may ssh to an instance and issue commands that way. Running instances may be monitored using Amazon's Cloud Watch tools which can provide useful metrics such as CPU and network usage. | ||||||||||||||||||||||||||||||||
> > | Amazon's Elastic Compute Cloud is a service which allows users to purchase computing resources by the hour in the form of virtual machine 'instances'. These instances are sold in many different sizes and under several purchasing options. Each instance is loaded with an Amazon Machine Image (AMI), a package including an OS and accompanying software. These can be chosen from a group of presets or customized by the user. When launching an instance, a startup script can be provided so that a task may be started immediately. Alternatively, the user may ssh to an instance and issue commands that way. Running instances may be monitored using Amazon's CloudWatch tools which can provide useful metrics such as CPU and network usage. | ||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||
Line: 9 to 9 | |||||||||||||||||||||||||||||||||
![]() | |||||||||||||||||||||||||||||||||
Added: | |||||||||||||||||||||||||||||||||
> > | |||||||||||||||||||||||||||||||||
Micro Instance Quick Start | |||||||||||||||||||||||||||||||||
Added: | |||||||||||||||||||||||||||||||||
> > | This section will walk through the steps required to set up a micro instance and do an example run of the configuration/validation pipeline.
Create an account and access the management console
Create the micro instance
Connect to the micro instance
Set up and run the configuration/validation pipeline | ||||||||||||||||||||||||||||||||
CLI tools-- Main.geschd - 08 Aug 2013 | |||||||||||||||||||||||||||||||||
Added: | |||||||||||||||||||||||||||||||||
> > |
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Added: | ||||||||
> > |
Amazon's Elastic Compute Cloud (EC2)IntroductionAmazon's Elastic Compute Cloud is a service which allows users to purchase computing resources by the hour in the form of virtual machine 'instances'. These instances are sold in many different sizes and under several purchasing options. Each instance is loaded with an Amazon Machine Image (AMI), a package including an OS and accompanying software. These can be chosen from a group of presets or customized by the user. When launching an instance, a startup script can be provided so that a task may be started immediately. Alternatively, the user may ssh to an instance and issue commands that way. Running instances may be monitored using Amazon's Cloud Watch tools which can provide useful metrics such as CPU and network usage.
![]() Micro Instance Quick StartCLI tools-- Main.geschd - 08 Aug 2013 |