Skip to content

Conversation

@fdewinne
Copy link
Contributor

This update adds the following features:

  • authentication through profile instead of key/secret pair
  • region support with auto-detection from environment or profile configuration if available
  • fix bug if no key is provided

This update also provides unit tests:

see https://continuousphp.com/git-hub/fdewinne/composer-aws/build/f4223295-2754-4ef4-96d1-21e956f3594a/output for execution details

Frederic Dewinne added 7 commits August 13, 2016 12:05
.gitignore Outdated
@@ -1 +1,3 @@
.idea
/vendor
composer.lock
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please do not ignore the lock file, properly update it and commit it.

@fdewinne
Copy link
Contributor Author

I just restored the composer.lock file... even if it's not necessary in this case.
If you look at the final note in the composer.lock documentation, we are in the case of a library in a composer plugin. Then composer ignores this file on install command.

@naderman
Copy link
Owner

naderman commented Aug 17, 2016

@fdewinne Yes but while the file is not needed for installing the library or plugin it has advantages to keep a lock file for libraries regardless: The use of composer install in CI is faster and deterministic (without the lock composer runs an update which it shouldn't do on CI), and on bug reports that contain test failures you can verify which version of dependencies were actually used in the run if a lock file is present.

So I keep recommending to people to always keep a lock file, even if it's not needed for users of the library technically.

@naderman
Copy link
Owner

By the way thanks for the PR! Just got distracted yesterday when I started the review so only left you with that one silly comment on the first file ;-)

$s3config['key'] = $key;
$s3config['secret'] = $secret;
if (($composerAws = $config->get('amazon-aws'))) {
$s3config = array_merge($s3config, $composerAws);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think you can just stick in the "credentials" key here if needed, so that the config remains backward compatible?

@naderman
Copy link
Owner

Looks great apart from what I mentioned :-)

w3iBStime added a commit to nativex/composer-aws that referenced this pull request Dec 22, 2016
* Provides mapping for credentials from old configuration schema to new.
* Adds newlines to end of test files
* Auto-detects regions via S3MultiRegionClient instead of assuming
us-east-1 if not explicitly configured.
@naderman naderman merged commit afc92ca into naderman:master Mar 7, 2017
naderman added a commit that referenced this pull request Mar 7, 2017
Addresses comments in PR #10 and relaxes region requirement
@naderman
Copy link
Owner

naderman commented Mar 7, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants