How to mount xfs

August 27th, 2015 No comments

How to mount xfs

#Find the new disk
fdisk -l

#Create the partition ( n,1,w)
fdisk /dev/xvdf

Continue reading “How to mount xfs” »

Categories: Amazon-AWS, HowTo Tags:

Setup AWS S3 Policy

August 26th, 2015 No comments

S3 is a great place to keep logs data or even backups.
Monthly Basic cost:
S3 U$ 0.02 p/ GB (with Reduce Redundancy).
Glacier only U$ 0.01 p/ GB

Continue reading “Setup AWS S3 Policy” »

Amazon Leadership Principles

August 24th, 2015 No comments

Amazon Leadership Principles aren’t just a pretty inspirational wall hanging. These Principles work hard. Amazonians use them, every day, whether they’re discussing ideas for new projects, deciding on the best solution for a customer’s problem, or interviewing candidates. It’s just one of the things that makes Amazon peculiar.

Continue reading “Amazon Leadership Principles” »

Categories: Amazon-AWS Tags:

s3 delete script

August 24th, 2015 No comments

How about if you need to delete large quantities of files inside a S3 bucket.
In my case it was about 5 millions files.
Using a python script.

Continue reading “s3 delete script” »

Categories: Amazon-AWS, HowTo Tags:

s3 set cache-control

August 21st, 2015 No comments

Script to set cache control header to a large S3 bucket
Best let it run on the background. do

nohup /root/ > /root/set_cache.log &

Continue reading “s3 set cache-control” »

Categories: Amazon-AWS, HowTo Tags:

aws backup script

August 11th, 2015 No comments

This is a robust script that backups all instances that have a TAG, Backup=TRUE
it generates a AMI images, and snapshots of each Volume, also a nice e-mail with a HTML table nice format.

Continue reading “aws backup script” »

AWS Lambda

August 10th, 2015 No comments

Today I tested the amazing Lambda and I was able to automaticly process images, generating thumbnails by just copying an image into a S3 bucket.

Continue reading “AWS Lambda” »

Categories: Amazon-AWS, HowTo Tags: , , , , ,

AWS save money spot instances

August 3rd, 2015 No comments

When you have any process that listen to a SQS queue, in most case it a good case for SPOT instance to come into play and save you lots of money.

Continue reading “AWS save money spot instances” »

Categories: Amazon-AWS, HowTo Tags:

AWS Cloud Watch bash script

August 3rd, 2015 No comments

This script was written by me a while back (still has an old version of the CLI)
I found a minor bug, when using non integer values (decimal values) causes a problem,
bash does not handle it very well.
Anyone who feels like updating and fixing please do so.

Continue reading “AWS Cloud Watch bash script” »

Categories: Amazon-AWS, HowTo Tags: , , ,

solr index command

July 27th, 2015 No comments

Not sure if there is another better way to do it.
But I wrote this script to perform full or delta imports.
more details

Continue reading “solr index command” »

Categories: HowTo Tags: