oreoblackberry.blogg.se

Installing drupal on aws ec2 using command line
Installing drupal on aws ec2 using command line









installing drupal on aws ec2 using command line
  1. #Installing drupal on aws ec2 using command line install
  2. #Installing drupal on aws ec2 using command line update
  3. #Installing drupal on aws ec2 using command line download

Now you only need to run the batch file to get a command line with the environmental variables set. You set the path variable to include these cmd files in your path so that you do not have to be in that directory to run them. Bin will contain the cmd files of the different commands for that API. Both folders should have two subdirectories called bin and lib. If you have multiple AWS accounts all you need to do is modify these lines to switch between accounts.ĮC2_HOME and AWS_ELB_HOME both point to the folders you unzipped the API into. You could rename the key and certificate for simplification. JAVA_HOME needs to be set to the appropriate path for your machine.įor example on my (64-bit Window 7) system java.exe is located at “C:Program Files (x86)javajre6binjava.exe” so I set JAVA_HOME to “C:Program Files (x86)javajre6”ĮC2_Private_Key and EC2_Cert both are the location of the private key and certificate that you retrieved from the AWS website in the previous step. REM Path to EC2 AMI, subfolders of bin and lib REM Path to ELB API, subfolders of bin and lib REM Path to EC2 API, subfolders of bin and lib REM Path to Primary Key and Certificate retrieved from AWS Set JAVA_HOME=”C:Program Files (x86)javajre6″ If you’d like to configure your system to have these settings available always and system-wide use method 2.Ĭreate a batch file in c:adminaws called awsTools.bat. These settings are available only for this session. This method is used to launch a command prompt with required settings. Possession of these two files give you (or anyone else with them) access to your AWS account.Ĭonfigure Environment Variables You need to configure your command line environment with a few environment variables. Once you do Amazon will provide you a Private Key File (pk-.pem) and a Certificate (cert-.pem). You may have to create a new certificate.

installing drupal on aws ec2 using command line

Logon to the AWS Console and scroll down to the X.509 area. You will have to retrieve these files from AWS.

installing drupal on aws ec2 using command line

To simplify things I moved all files from their respective locations to the following directories:Īuthentication to AWS uses a certificate and private key. Each will unzip to separate directories, usually including the version number of the tool.

#Installing drupal on aws ec2 using command line download

I used wget (for Windows) to download the files:Īlternatively you could download one or both directly from your browser. Note, this is where you may store your certificates, the services API files, etc.

#Installing drupal on aws ec2 using command line install

You can install the tools wherever you like. I like to organize my programs a certain way so I installed the tools to c:adminaws. If you don’t already have it download and install from here. The first requirement is to have Java 5 or later installed. So this aims to be THE GUIDE to setting up the EC2 API, ELB and EC2 AMI command line tools on Windows. There are several guides and tutorials on installing and configuring the command line tools on Linux, but not much for Windows. However often you need to use the command line tools because you want to script a task, or access features that a GUI tool doesn’t provide. There are a number of GUI tools for working with Amazon EC2 services such as ElasticFox, RightScale and AWS Management Console. Most users will need the API tools, some the ELB tools, and not many will need the AMI tools. NOTE: This tutorial contains information for both AMI and API command line tools along with ELB tools.

#Installing drupal on aws ec2 using command line update

UPDATE (12-2016): See HowTo: Install AWS CLI on Both Windows and Linux for updated information on installing, configuring and using the AWS CLI unified tools.











Installing drupal on aws ec2 using command line