Skip to content
JoshuaEstes edited this page Mar 18, 2011 · 7 revisions

Home > Tasks

This page will contain a listing of every task that you can do with the plugin

EC2

Tasks that deal with ec2 are listed under the ec2 namespace.

ec2:delpoy

This task will deploy your symfony project to an ec2 instance. To make it work you need to add something similar in your properties.ini file.

[cloud]
  host=public-dns.amazonaws.com
  user=ec2-user
  dir=/var/html/www
  keypair=/path/to/key.pem

Then to deploy your project, just run php symfony ec2:deploy --go cloud and it should connect and rsync your files.

ec2:start

ec2:stop

ec2:reboot

S3

s3:create-bucket

s3:delete-bucket

s3:list-buckets

s3:backup-db

This will create a backup of your databases and send the files to the bucket of your choice. This function runs mysqldump.

Usage

$ php symfony s3:backup-db backup-bucket-name

s3:sync

underdevelopment

This is one of the task that you will use the most. The task is modeled after the rsync command. With this command you will be able to sync files from one of your s3 buckets to a local folder, or sync files from a local folder to one of your s3 buckets.

Usage

Sync files from a local directory to a s3 bucket

php symfony s3:sync /path/to/local/directory bucketName:/

CloudFront

cloudfront:create-distribution

cloudfront:delete-distribution

cloudfront:list-distributions