Nir
Nir

Reputation: 25369

AWS PHP SDK V2 dynamodb - how to disable/enable ssl

How do I disable/enable SSL when working with dynamodb with the new PHP SDK (V2).

In V1 there was $DDB->disable_ssl(); Whats the equivalent on V2 ?

Couldn't find anything on this in the documentation.

Upvotes: 1

Views: 925

Answers (1)

Michael Dowling
Michael Dowling

Reputation: 5266

While it is not recommended, you can disable SSL by passing a scheme option to a client's factory method or as a configuration setting in a service builder.

<?php

$client = Aws\DynamoDb\DynamoDbClient::factory(array(
  'key'    => '***',
  'secret' => '***',
  'region' => 'us-east-1',
  'scheme' => 'http'
));

The scheme option determines the URL scheme used when creating the base URL used to contact a service.

Upvotes: 3

Related Questions