How to use scheme in aws S3Client

URI scheme to use when connecting. The SDK uses “https” endpoints (i.e., uses SSL/TLS connections) by default. You can attempt to connect to a service over an unencrypted “http” endpoint by setting scheme to “http”.

$s3 = new Aws\S3\S3Client([
     'version' => '2006-03-01',
     'region'  => 'us-west-2',
     'scheme'  => 'http'
 ]);

See the AWS Regions and Endpoints for a list of endpoints and whether a service supports the http scheme.

Leave a Comment

Your email address will not be published. Required fields are marked *