aws-sdk-php-automation on master
Update models for release 3.257.10 release (compare)
aws-sdk-php-automation on 3.257.10
stobrien89 on master
Remove unnecessary uses (#2613) (compare)
stobrien89 on master
bugfix: fix integ tests (#2630) (compare)
aws-sdk-php-automation on master
Update models for release 3.257.9 release (compare)
aws-sdk-php-automation on 3.257.9
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
$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'][0]['InstanceId'];
$ec2Client->waitUntil('InstanceRunning', [
'instance-id' => [$instanceID],
'instance-state-name' => ['running'],
'instance-state-code' => ['16']
]);
Does anybody know does not wait until ec2 instance is in 'Running' state ?
Hey guys,
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
S3Client::factory(array(
'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' => '...',
]);
$client = App::make('aws')->createClient('ec2');
$instance = $client->requestSpotFleet([
'SpotFleetRequestConfig' => [
'IamFleetRole' => 'arn:aws:iam::552724291356:role/aws-ec2-spot-fleet-tagging-role',
'LaunchSpecifications' => [
[
'ImageId' => 'ami-0ace68c630867ba8c',
'InstanceType' => 't3a.nano', // smallest vCore 2 & 512 MB Ram
'KeyName' => '2nj35n2j3n5j25-key', // SSH key
],
],
'TerminateInstancesWithExpiration' => true,
'ValidUntil' => $expire_at->toDateTimeString(),
'TargetCapacity' => 1,
],
]);
$spotFleetRequestId = $instance['SpotFleetRequestId'];
dump($spotFleetRequestId);
$instanceID = null;
do{
$result = $client->describeSpotFleetInstances([
'SpotFleetRequestId' => $spotFleetRequestId,
]);
dd($result); // here should return the Active instances array
if (!empty($result['ActiveInstances']))
$instanceID = $result['ActiveInstances'][0]['InstanceId'];
echo "sleep" . PHP_EOL;
sleep(5);
}while($instanceID == null);