A composer plugin to download packages from Amazon S3 which may be used for private repositories.
$ composer global require "naderman/composer-aws:~0.2"$ composer require "naderman/composer-aws:~0.2"There are three options available in order to configure and use this plugin:
- For AWS EC2: Create an IAM profile for your instances to access the bucket - then no other configuration is necessary.
- Set the environment variables
AWS_ACCESS_KEY_IDandAWS_SECRET_ACCESS_KEY - Add the following to your
config.json(in$COMPOSER_HOME):
{
"config": {
"amazon-aws": {
"key": "your aws access key",
"secret": "your aws secret"
}
}
}Once the plugin is installed and configured, you can transparently use packages.json files which contain s3:// schemes for dist urls.
- Setting up satis as a mirror: http://getcomposer.org/doc/articles/handling-private-packages-with-satis.md#downloads
- AWS IAM Instance profiles: http://docs.aws.amazon.com/IAM/latest/UserGuide/instance-profiles.html
- Amazon S3 Syncer: https://github.com/easybiblabs/s3-syncer