I have a stream wrapper configured to work with amazon s3 using the Gaufrette bundle to manage the filesystem. I can successfully dump assets using assetic and my current configuration is as follows:
knp_gaufrette:
adapters:
amazon:
amazon_s3:
amazon_s3_id: site_store.s3
bucket_name: %site_store.bucket_name%
create: true
filesystems:
amazon:
adapter: amazon
stream_wrapper:
protocol: s3
filesystems:
- amazon
assetic:
read_from: %cdn_path_prod%
write_to: %cdn_path_prod%
and my params:
cdn_url_prod: "http://images.site.com/"
cdn_path_prod: "s3://amazon"
I was able to do app/console assetic:dump --env=dev. Then it would upload the assets to my s3 buckets successfully. However when I try to do the same with assets install by doing:
app/console assets:install s3://amazon
It gives me this error:
[InvalidArgumentException]
The specified path (s3://amazon) is invalid.
I've looked over the web and someone was able to do it as he described here. What is wrong with my steam wrapper?