Check out my first novel, midnight's simulacra!
Amazon Web Services: Difference between revisions
From dankwiki
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
AWS offers "fleets" of virtualized machines and various networking infrastructure atop them. | AWS offers "fleets" of virtualized machines and various networking infrastructure atop them. | ||
==Getting started== | ==Getting started using [[Debian]]== | ||
* There's a "[http://aws.amazon.com/free/ Free Tier]" for new customers, providing 5GB of space and 1 year of an EC2 "Micro" instance | * There's a "[http://aws.amazon.com/free/ Free Tier]" for new customers, providing 5GB of space and 1 year of an EC2 "Micro" instance | ||
** A valid credit card and phone number are required | ** A valid credit card and phone number are required | ||
* Download the [http://docs.amazonwebservices.com/AutoScaling/latest/DeveloperGuide/astools.html command line tools] (a Java package) | * Download the [http://docs.amazonwebservices.com/AutoScaling/latest/DeveloperGuide/astools.html command line tools] (a Java package) | ||
===Authentication=== | ===Authentication=== | ||
* Go to the "Security Credentials" page and acquire your "Access ID" and "Access Key" (~40 byte hashes) | * Go to the "Security Credentials" page and acquire your "Access ID" and "Access Key" (~40 byte hashes), and your [[X509]] cert and key. | ||
* You can use the access key in three ways: | * You can use the access key in three ways: | ||
** Fill in the template values in <tt>credential-file-path.template</tt> from the unpacked command line tools' directory, and export AWS_CREDENTIAL_FILE pointing to this file | ** Fill in the template values in <tt>credential-file-path.template</tt> from the unpacked command line tools' directory, and export AWS_CREDENTIAL_FILE pointing to this file | ||
** Reference this same file via --aws-credential-file ''file'' as an argument to all commands | ** Reference this same file via --aws-credential-file ''file'' as an argument to all commands | ||
** Provide --I ''ID'' --S ''Key'' as arguments to all commands | ** Provide --I ''ID'' --S ''Key'' as arguments to all commands | ||
* You can use the X509 key in two ways: | |||
** Export EC2_CERT=''cert'' and EC2_PRIVATE_KEY=''key'' | |||
** Reference these same files via --ec2-cert-file-path ''cert'' and --ec2-private-key-file-path ''key'' | |||
===Environment Variables=== | |||
* I add the following to .bashrc: | * I add the following to .bashrc: | ||
<pre> | <pre>export AWS_AUTO_SCALING_HOME="$HOME/local/aws" | ||
export PATH="$PATH:$ | export PATH="$PATH:$AWS_AUTO_SCALING_HOME/bin" | ||
export AWS_CREDENTIAL_FILE="$ | export AWS_CREDENTIAL_FILE="$AWS_AUTO_SCALING_HOME/credential-file-path.template" | ||
export JAVA_HOME=/usr</pre> | |||
You ought now be able to run a remote command: | |||
<pre>[skynet](0) $ as-describe-auto-scaling-groups --headers | |||
No AutoScalingGroups found | |||
[skynet](0) $ </pre> | |||
==Managing Fleets== | |||
* If you don't like the command line tools, there's the [https://console.aws.amazon.com/console/home AWS Management Console] | |||
* [http://aws.amazon.com/autoscaling/ Autoscaling] | * [http://aws.amazon.com/autoscaling/ Autoscaling] |
Latest revision as of 11:21, 22 January 2012
AWS offers "fleets" of virtualized machines and various networking infrastructure atop them.
Getting started using Debian
- There's a "Free Tier" for new customers, providing 5GB of space and 1 year of an EC2 "Micro" instance
- A valid credit card and phone number are required
- Download the command line tools (a Java package)
Authentication
- Go to the "Security Credentials" page and acquire your "Access ID" and "Access Key" (~40 byte hashes), and your X509 cert and key.
- You can use the access key in three ways:
- Fill in the template values in credential-file-path.template from the unpacked command line tools' directory, and export AWS_CREDENTIAL_FILE pointing to this file
- Reference this same file via --aws-credential-file file as an argument to all commands
- Provide --I ID --S Key as arguments to all commands
- You can use the X509 key in two ways:
- Export EC2_CERT=cert and EC2_PRIVATE_KEY=key
- Reference these same files via --ec2-cert-file-path cert and --ec2-private-key-file-path key
Environment Variables
- I add the following to .bashrc:
export AWS_AUTO_SCALING_HOME="$HOME/local/aws" export PATH="$PATH:$AWS_AUTO_SCALING_HOME/bin" export AWS_CREDENTIAL_FILE="$AWS_AUTO_SCALING_HOME/credential-file-path.template" export JAVA_HOME=/usr
You ought now be able to run a remote command:
[skynet](0) $ as-describe-auto-scaling-groups --headers No AutoScalingGroups found [skynet](0) $
Managing Fleets
- If you don't like the command line tools, there's the AWS Management Console