Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add AWS missing regions , add "version" to match AWS PHP SDK request requirements #190

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

ajaberdev
Copy link

No description provided.

Comment on lines +39 to +60
'US East (Ohio)' => 'us-east-2',
'US East (N. Virginia)' => 'us-east-1',
'US West (N. California)' => 'us-west-1',
'US West (Oregon)' => 'us-west-2',
'Africa (Cape Town)' => 'af-south-1',
'Asia Pacific (Mumbai)' => 'ap-south-1',
'Asia Pacific (Osaka-Local)' => 'ap-northeast-3',
'Asia Pacific (Seoul)' => 'ap-northeast-2',
'Asia Pacific (Singapore)' => 'ap-southeast-1',
'Asia Pacific (Sydney)' => 'ap-southeast-2',
'Asia Pacific (Tokyo)' => 'ap-northeast-1',
'Canada (Central)' => 'ca-central-1',
'China (Beijing)' => 'cn-north-1',
'China (Ningxia)' => 'cn-northwest-1',
'Europe (Frankfurt)' => 'eu-central-1',
'Europe (Ireland)' => 'eu-west-1',
'Europe (London)' => 'eu-west-2',
'Europe (Milan)' => 'eu-south-1',
'Europe (Paris)' => 'eu-west-3',
'Europe (Stockholm)' => 'eu-north-1',
'Middle East (Bahrain)' => 'me-south-1',
'South America (São Paulo)' => 'sa-east-1',

Choose a reason for hiding this comment

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

The associations will have to be reversed. That is - 'ap-south-1' => 'Asia Pacific (Mumbai)', etc.

Comment on lines +38 to +39
if ($config['verion'])
$credentials['verion'] = $config['verion'];

Choose a reason for hiding this comment

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

The key is 'version', not 'verion'.

)),
'version' => new ChoiceField(array(
'label' => $__('AWS SDK version'),
'version' => array(

Choose a reason for hiding this comment

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

This array needs to be named 'choices'

Copy link

@pasusarla pasusarla left a comment

Choose a reason for hiding this comment

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

In addition to these changes, I had to do a few more to get the plugin to work. The AWS SDK needs to be updated to 3.x, and that necessitates changes in plugin.php, as well as additional requires in both config.php and storage.php to load namespace functions.

Finally, in the constructor in storage.php, the config values for 'region' and 'version' aren't getting picked up (even after changing the spelling from 'verion') in Admin > Settings > System > Attachments Storage and Settings, after configuring the plugin.

I am unable to update this PR myself because I haven't yet figured out how to solve the issues above without hard-coding a few things in my setup.

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.

2 participants