Search code examples
amazon-web-servicesgrailsamazon-s3

How to incorporate AWS S3 plugin into Grails app?


How do I go about integrating this S3 plugin into my grails application? The documentation is very limited.

I have it fully installed with Quartz. And I have my AWS account, policies and bucket setup.

I want to be able to upload content for my Event domain class, with the content being uploaded being exclusive for each event object.


Solution

  • The plugin you linked to looks very outdated, Last updated: 24 March 2010 and seems odd to depend on another plugin like quartz to use s3.

    I would instead suggest Karman (maintained by the same person as asset-pipeline) and updated for Grails 2 & 3 https://grails.org/plugin/karman-aws?skipRedirect=true

    Or you may just use the aws java sdk directly - it is straight forward api: http://docs.aws.amazon.com/AmazonS3/latest/dev/UploadObjSingleOpJava.html