|
|
|
@ -54,11 +54,11 @@ module Storage |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def create_client |
|
|
|
def create_client |
|
|
|
credentials = |
|
|
|
credentials = PlatformHelper.is_paas? ? |
|
|
|
Aws::Credentials.new( |
|
|
|
Aws::Credentials.new( |
|
|
|
@configuration.access_key_id, |
|
|
|
@configuration.access_key_id, |
|
|
|
@configuration.secret_access_key, |
|
|
|
@configuration.secret_access_key, |
|
|
|
) |
|
|
|
) : Aws::ECSCredentials.new |
|
|
|
Aws::S3::Client.new( |
|
|
|
Aws::S3::Client.new( |
|
|
|
region: @configuration.region, |
|
|
|
region: @configuration.region, |
|
|
|
credentials:, |
|
|
|
credentials:, |
|
|
|
|