Articles

Anahita DocCamps

Anahita DocCamps's Articles

Scott Crawford

Scott Crawford

November 10 2013

Using Amazon S3 with Anahita

1.  Create your Amazon AWS account, and make note of your Access Key and Secret Key credentials.

2.  Create a Bucket using Amazon's S3 service that you will use to store your project's Anahita files.

3.  Login to Anahita's Administrator panel, and navigate to the "Storage - Amazon S3" plugin (Extend -> Plugin Manager -> Storage - Amazon S3.

4.  Enter your Amazon S3 security credentials and bucket / folder information in the "Parameters" area:

- “The folder to store the data” (Anahita will create this folder) - “Bucket” - “Access Key” - “Secret Key”

5.  Set the Plugin to the “Published” state in order to activate it.

6.  Anahita should now create a folder in your selected S3 Bucket for storing user's avatars, photos, etc.  You can double-check this by loging into Amazon S3 and navigating to your project's Bucket, where you should now see the folder that you entered in the plugin parameters.

Bent Rune Skulevold liked this
Thanks - It looks like the asset folder on S3 is made when the first opload is done..
Unknown Person liked this
Scott Crawford
Scott Crawford
November 24 2013 Permalink
Thanks for the feedback @Bent, I'm cleaning up the documentation today and hope to post to GitHub this afternoon.
Great, I really wonder though - Should the local storage plugin be disabeled when using S3 - or should they both be enabeled?
Rastin Mehr
Rastin Mehr
November 24 2013 Permalink
If you are using the S3 it would be better if you disable the local storage plugin.
Bent Rune Skulevold liked this
Thank Rastin - piece by piece it comes together :)
Rastin Mehr liked this
Scott Crawford
Scott Crawford
November 25 2013 Permalink
Is it possible to switch to S3 after using local storage for a while? Or even vice-versa?
Rastin Mehr
Rastin Mehr
November 26 2013 Permalink
No, unless you somehow sync the local storage and s3 bucket.
Bent Rune Skulevold liked this
I'm in the process of transferring my Assets folder from my Rackspace host to AWS S3. My academic use has generated 16 GB of images so far, and it's going to escalate as I deploy it in the architectural studio. The uploaded folder will have the same name and content as the downloaded folder. I'll apply the same name in the Anahita plugin parameters. Has anyone done this already and have any advice for avoiding any issues? After I determine the switch has worked and existing content is found using the S3 host, can I delete the content of the assets folder on the host? It's pushed the cost of hosting above $100/month.
Bent Rune Skulevold liked this
Rastin Mehr
Rastin Mehr
January 26 2014 Permalink
Yes you can delete the images on your server once you are sure that the assets folder has been moved to your Amazon S3 bucket successfully. If you aren't sure yet, just rename the assets directory on your server to assets_old and use Anahita for a while.

Amazon S3 is faster and less expensive than most traditional hosting accounts for file storage.
2 people liked this

Additional Information

  • Updated November 10 2013 by Scott Crawford
  • 9 Comments

Powered by Anahita