I\'d like to dump my assets to my s3 bucket in production, after deploying with capifony in Symfony 2. I\'ve found some solution, but don\'t really find out the best to use.
Actually you don't really need and probably even shouldn't, put your key in the application code. In Amazon S3 you can specify access by sender, in this case you're production server address.
Take a look at the provided post link: https://forums.aws.amazon.com/thread.jspa?messageID=236066
This would allow you to freely write from that server to your bucket. Remember also to deny access from every other ip.