Sponsored Content
Full Discussion: AWS S3 with Bash Script
Top Forums Shell Programming and Scripting AWS S3 with Bash Script Post 302936770 by krux_rap on Friday 27th of February 2015 01:39:37 PM
Old 02-27-2015
AWS S3 with Bash Script

Hello All,

I am trying few stuff on Amazon S3 move files to EC2 (Ubuntu Server)

I am receiving daily 2 files in S# bucket

Code:
XYZ_2015-02-26_ 200.csv
ABC_2015-02-26_ 200.csv

I want to move daily received files to local EC2(Ubuntu server) and rename files to
Code:
XYZ_2015-02-26.csv
ABC_2015-02-26.csv

Instead of Renaming files after moving to EC2 , if possible i want to rename files on S3 itself.

and send an email notification with files received or not on daily basis

Is this possible using Bash? If yes, please guide.

Thanks
Krux
 

4 More Discussions You Might Find Interesting

1. Virtualization and Cloud Computing

Computing in the Clouds with AWS

Tim Bass 07-25-2008 02:34 AM The admin*team at The UNIX Forums*have been considering moving the UNIX and*Linux*Forums to the clouds - the Amazon Web Services (AWS) cloud.* Amazon EC2 is one option to scale the forums, which is a*LAMP application.* Amazon EC2 allows*us to rent dedicated... (3 Replies)
Discussion started by: Linux Bot
3 Replies

2. Virtualization and Cloud Computing

How to grow an EBS Array at AWS

This process was collected by trial and error (mostly error) since most of the documents I found on the 'net were incomplete. The cookbook/walkthrough on how to grow an Array on EBS at AWS... # walkthrough by John Jones (jjones at cirrhus9 dot com) umount /dev/md0 mdadm --stop /dev/md0... (0 Replies)
Discussion started by: Habitual
0 Replies

3. Shell Programming and Scripting

AWS Cloud EBS limit script!

Hi, I am trying to correct the following script to get total EBS usage from Amazon cloud. Can someone please help in correcting it. It appears that its not working properly. t=0; for i in `ec2-describe-volumes | grep VOLUME | grep standard | awk '{print $3}'`; do t=`expr $t + $i`; done;... (2 Replies)
Discussion started by: amar0000
2 Replies

4. Shell Programming and Scripting

How to block first bash script until second bash script script launches web server/site?

I'm new to utilities like socat and netcat and I'm not clear if they will do what I need. I have a "compileDeployStartWebServer.sh" script and a "StartBrowser.sh" script that are started by emacs/elisp at the same time in two different processes. I'm using Cygwin bash on Windows 10. My... (3 Replies)
Discussion started by: siegfried
3 Replies
TXAWS-DISCOVER(1)						   User Commands						 TXAWS-DISCOVER(1)

NAME
txaws-discover - txAWS AWS API discovery tool SYNOPSIS
txaws-discover [--key KEY] [--secret SECRET] [--endpoint ENDPOINT] DESCRIPTION
Purpose: Invoke an EC2 API method with arbitrary parameters. --action ACTION [PARAMETERS, ...] OPTIONS
--key The AWS access key to use when making the API request. --secret The AWS secret key to use when making the API request. --endpoint The region endpoint to make the API request against. --action The name of the EC2 API to invoke. -h, --help Show help message. Description: The purpose of this program is to aid discovery of the EC2 API. It can run any EC2 API method, with arbitrary parameters. The response received from the backend cloud is printed to the screen, to show exactly what happened in response to the request. The --key, --secret, --end- point and --action command-line arguments are required. If AWS_ENDPOINT, AWS_ACCESS_KEY_ID or AWS_SECRET_ACCESS_KEY environment variables are defined the corresponding options can be omitted and the values defined in the environment variables will be used. Any additional parameters, beyond those defined above, will be included with the request as method parameters. EXAMPLES
The following examples omit the --key, --secret and --endpoint command-line arguments for brevity. They must be included unless corresponding values are available from the environment. Run the DescribeRegions method, without any optional parameters: txaws-discover --action DescribeRegions Run the DescribeRegions method, with an optional RegionName.0 parameter: txaws-discover --action DescribeRegions --RegionName.0 us-west-1 txaws-discover 0.2.3 May 2012 TXAWS-DISCOVER(1)
All times are GMT -4. The time now is 08:39 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy