Storing files to multiple AWS S3 buckets

Option 1, Single bucket replication (files added to Bucket A are automatically added to Bucket B) If you aim to store files to a second S3 bucket automatically upon uploading, the built in “Cross Region Replication” is the method to use. Its very easy to set up with just a few clicks in the AWS …

Continue reading ‘Storing files to multiple AWS S3 buckets’ »

How to back up your mysql database from a Laravel 5.1 application to Amazon S3

The following steps are a summary of the instructions from https://github.com/backup-manager/laravel, specific to a Laravel 5.1 application that needs to back up a mySQL database to an AWS S3 bucket. The backup-manager library uses mysqldump to perform the database dump and works well on larger databases also. First, create your bucket on AWS and create the …

Continue reading ‘How to back up your mysql database from a Laravel 5.1 application to Amazon S3’ »

How to migrate an EC2 instance from one AWS account to another

You might want to “copy and paste” an existing EC2 instance from once AWS account to another, to go from Development to Production if you used different accounts for example. Here’s a step by step guide. One potential ‘gotcha’ If you created your existing EC2 instance from a community AMI (such as creating a WordPress …

Continue reading ‘How to migrate an EC2 instance from one AWS account to another’ »

Turn Teamwork in to a Devops command center

We use Teamwork every day to manage our software development work for our clients. I am always interested in pushing Teamwork a little further to see if we can perform more and more tasks within the application so that it is transparent and accessible to our clients, co-workers…and save some time too! In a previous …

Continue reading ‘Turn Teamwork in to a Devops command center’ »

Copy a large number of files from a server to AWS S3

TL/DR: Use s3-parallel-put, a Python script to copy to S3 — I recently worked on an EC2 instance which needed a large number of files, 200gb+ to be copied over to AWS S3. The overall goal was to move all data over to s3 to facilitate future growth and allow for multiple instances in different …

Continue reading ‘Copy a large number of files from a server to AWS S3’ »

Sending emails with AWS SES and an IAM Policy

One thing to keep in the back of your mind when using AWS SES to send emails with an IAM policy is; it will not work if you create the IAM policy manually in the Console. You must create the Policy via the the ‘Create My SMTP Credentials’ button in the SMTP settings page in …

Continue reading ‘Sending emails with AWS SES and an IAM Policy’ »