How to mount xfs
#Find the new disk
fdisk -l
#Create the partition ( n,1,w)
fdisk /dev/xvdf
#Needed
yum install xfsprogs.x86_64 xfsdump-3.1.3-5.7.amzn1.x86_64
#Make the files system
mkfs.xfs -f /dev/xvdf
#Prepare …
Setup AWS S3 Policy
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
For …
Amazon Leadership Principles
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 …
s3 delete script
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.
pHere …
s3 set cache-control
Script to set cache control header to a large S3 bucket
Best let it run on the background. do
nohup /root/set_cache.sh /root/set_cache.log &
pHere is the code:
#!/bin/bash #…
aws backup script
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 …
AWS Lambda
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.
I followed the Walkthrough at…