*This guide assumes you already have JAVA correctly setup on your machine.
For instructions on how to setup JAVA, check out: Installing and Configuring JAVA
Now, we're going to use pip to install the AWS Command Line Interface to your machines. So if you don't already have pip, you need to install it as follows:
For Ubuntu:
sudo apt-get install python-pip python-dev build-essential
sudo pip install --upgrade pip
For Windows:
Follow the steps here: http://stackoverflow.com/a/12476379/1415352
I've repeated them below:
First install setuptools: http://www.lfd.uci.edu/~gohlke/pythonlibs/#setuptools
Then install pip: http://www.lfd.uci.edu/~gohlke/pythonlibs/#pip
Quoting the above link,
Now simply fire up a terminal/command prompt and type:
~$: pip install awscli
After this, open a new terminal/command-prompt and type:
~$: aws
This should be recognized as a command and you should get an error like:
C:\Users\username>aws
usage: aws [options] <command> <subcommand> [parameters]
aws: error: too few arguments
This indicates a successful installation.
Now you need to configure awscli with your AWS credentials.
To do this create a file named config (no extension) with the following contents:
Now we need to place this file in the appropriate location.
For Ubuntu:
Create and place the file in ~/.aws/
For Windows:
Create and place the file in C:\Users\USERNAME\.aws\
You should be done now.
To test, we'll try downloading files from an S3 bucket.
Create a new empty directory on your machine.
Navigate to that directory from your command line.
Now type:
~$: aws s3 sync s3://bucketname/foldername .
[Don't miss the dot ( . ) at the end]
*This will download all files from the folder in the specified bucket to the current local directory you are at.
That's it.
For a complete list of avaiable commands, check out http://docs.aws.amazon.com/cli/latest/reference/
For instructions on how to setup JAVA, check out: Installing and Configuring JAVA
Now, we're going to use pip to install the AWS Command Line Interface to your machines. So if you don't already have pip, you need to install it as follows:
For Ubuntu:
sudo apt-get install python-pip python-dev build-essential
sudo pip install --upgrade pip
For Windows:
Follow the steps here: http://stackoverflow.com/a/12476379/1415352
I've repeated them below:
First install setuptools: http://www.lfd.uci.edu/~gohlke/pythonlibs/#setuptools
Then install pip: http://www.lfd.uci.edu/~gohlke/pythonlibs/#pip
Quoting the above link,
For me, this installed Pip at C:\Python27\Scripts\pip.exe. Add your analogue of C:\Python27\Scripts to your path (Start / Edit environment variables). Now you should be able to run pip from the command line
Now simply fire up a terminal/command prompt and type:
~$: pip install awscli
After this, open a new terminal/command-prompt and type:
~$: aws
This should be recognized as a command and you should get an error like:
C:\Users\username>aws
usage: aws [options] <command> <subcommand> [parameters]
aws: error: too few arguments
This indicates a successful installation.
Now you need to configure awscli with your AWS credentials.
To do this create a file named config (no extension) with the following contents:
[default]aws_access_key_id = AKIAIOSODNN7EXAMPLEaws_secret_access_key = <redacted>region = us-east-1You can access your aws_access_key_id and aws_secret_access_key at https://portal.aws.amazon.com/gp/aws/securityCredentials?
Now we need to place this file in the appropriate location.
For Ubuntu:
Create and place the file in ~/.aws/
For Windows:
Create and place the file in C:\Users\USERNAME\.aws\
You should be done now.
To test, we'll try downloading files from an S3 bucket.
Create a new empty directory on your machine.
Navigate to that directory from your command line.
Now type:
~$: aws s3 sync s3://bucketname/foldername .
[Don't miss the dot ( . ) at the end]
*This will download all files from the folder in the specified bucket to the current local directory you are at.
That's it.
For a complete list of avaiable commands, check out http://docs.aws.amazon.com/cli/latest/reference/
This is so informative! Thank you for sharing.
ReplyDeleteMelbourne SEO Services
Those guidelines additionally worked to become a good way to recognize that other people online have the identical fervor like mine to grasp great deal more around this condition. . aws training in chennai
ReplyDeleteIt is really a great work and the way in which you are sharing the knowledge is excellent.
ReplyDeleteaws training in omr | aws training in velachery | best aws training center in chennai
This comment has been removed by the author.
ReplyDeleteThanks for sharing such a wonderful Post with us. I learnt alot from your post. I am appreciating from you to you will share more information about it. Please keep sharing. Thanks Alot
ReplyDeleteLenovo Service Center in Hyderabad.
Best Laptop Service Center in Kukatpally, Hyderabad.
ReplyDeleteReally appreciate this wonderful post that you have provided for us.Great site and a great topic as well I really get amazed to read this. It's really good.
I like viewing web sites which comprehend the price of delivering the excellent useful resource free of charge. I truly adored reading your posting. Thank you!.
mobile phone repair in Fredericksburg
iphone repair in Fredericksburg
cell phone repair in Fredericksburg
phone repair in Fredericksburg
tablet repair in Fredericksburg
mobile phone repair in Fredericksburg
mobile phone repair Fredericksburg
iphone repair Fredericksburg
cell phone repair Fredericksburg
phone repair Fredericksburg
Did you know there's a 12 word phrase you can tell your man... that will induce deep feelings of love and impulsive appeal to you buried within his heart?
ReplyDeleteBecause hidden in these 12 words is a "secret signal" that fuels a man's impulse to love, please and guard you with all his heart...
12 Words Who Fuel A Man's Love Impulse
This impulse is so built-in to a man's mind that it will make him try better than ever before to build your relationship stronger.
Matter-of-fact, triggering this powerful impulse is so binding to achieving the best possible relationship with your man that as soon as you send your man one of these "Secret Signals"...
...You'll instantly notice him open his soul and mind for you in such a way he haven't experienced before and he'll perceive you as the one and only woman in the galaxy who has ever truly interested him.
Hi there colleagues, good paragraph and good urging commented here, I am genuinely enjoying by these.
ReplyDeleteKumaun University BA Part 1 Result
This piece of writing posted at this ba 3rd year ka time table web site is genuinely fastidious.
ReplyDelete