aws-sdk-php-automation on 3.112.2
aws-sdk-php-automation on master
Update models for release 3.112.2 release (compare)
srchase on master
Use region for AssumeRoleWithWe… (compare)
aws-sdk-php-automation on 3.112.1
aws-sdk-php-automation on master
Update models for release 3.112.1 release (compare)
hello everyone, I'm having a strange problem when generating S3 presigned URLs, we have 2 buckets (one for testing (us-east-1 / N. Virginia) and one for production (sa-east-1 / Sao Paulo)), both have KMS enabled and when we generate the presigned url using the PHP SDK v3 for the us-east-1 region, the link works fine, but not for the sa-east-1 region
Nevermind, it was a lack of permission in the KMS key, the IAM user didn't had usage access, sorry to bother
Does anybody know does not wait until ec2 instance is in 'Running' state ?
$result = $ec2Client->runInstances(array( 'LaunchTemplate' => [ 'LaunchTemplateId' => 'lt-0783e3c58265de43b', 'Version' => '1', ], 'MaxCount' => 1, // REQUIRED - number of instances 'MinCount' => 1, // REQUIRED - number of instances )); $instanceID = $result['Instances']['InstanceId']; $ec2Client->waitUntil('InstanceRunning', [ 'instance-id' => [$instanceID], 'instance-state-name' => ['running'], 'instance-state-code' => ['16'] ]);
i have a question, i am using SDK v2.6.9 and i heard about signature v2 will be deprecated on June 24.
I've changed signature to v4 by adding signature when creating an instance
'key' => $key,
'secret' => $secret,
'region' => $region,
'signature' => 'v4',
But i also saw a table, that told me have to update SDK to v3 to adopt the signature v4. It make me confused, because i am using SDK v2 and also can send v4 signature to server. My system was made from 2013 so, it's really heavy and difficult to change
So my question is: Do I have to change SDK to v3? or can continuously using SDK v2?
Thank you for reading and answer
$mediaLive = new MediaLiveClient([ 'version' => 'latest', 'region' => 'ap-south-1', 'credentials' => [ 'key' => 'key', 'secret' => 'secret' ] ]); $channels = $mediaLive->listChannels( [ 'MaxResults' => 10, ] ); var_dump($channels);
return $pinpoint->sendVoiceMessage([ 'CallerId'=>$originationNumber, 'Content' => [ 'SSMLMessage' => [ 'Text' => "<speak>This is a text from <emphasis>Pinpoint</emphasis> using SSML. <break time='1s' /> I repeat. This is a text from <emphasis>Pinpoint</emphasis> using SSML.</speak>", ], ], 'OriginationPhoneNumber' => $originationNumber, 'DestinationPhoneNumber' => $phoneNumber ]);
415 Unsupported Media Type
Hey, I am trying to make a sagemaker runtime client using :
$client = new Aws\SageMakerRuntime\SageMakerRuntimeClient([
'credentials' => $memoizedProvider, 'region' => $region, 'version' => "latest" ]);
but I am getting a fatal error. "Fatal error: Uncaught Aws\Exception\UnresolvedApiException: The runtime.sagemaker service does not have version: latest."
$client = new AwsClient([ 'credentials' => [ 'key' => '...', 'secret' => '...', ], 'region' => 'eu-west-1', 'version' => '2015-03-31', ]); // This is ok, because default is EU region $client->invoke([ 'FunctionName' => 'EuFunc', 'Payload' => '...', ]); // How to switch region to US for this? $client->invoke([ 'FunctionName' => 'UsFunc', 'Payload' => '...', ]); // I am running local dev aws sam cli and developing new function and want to switch "endpoint" in config + credentials // to local for this function without affecting the other functions. How? :) $client->invoke([ 'FunctionName' => 'LocalFunc', 'Payload' => '...', ]);