Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
  • Nov 26 19:36
    joetannenbaum commented #2574
  • Nov 26 00:53
    SamRemis synchronize #2582
  • Nov 26 00:44
    SamRemis edited #2582
  • Nov 26 00:44
    SamRemis synchronize #2582
  • Nov 26 00:18
    SamRemis synchronize #2582
  • Nov 25 16:54
    SamRemis synchronize #2582
  • Nov 24 21:24
    SamRemis synchronize #2582
  • Nov 24 17:08
    SamRemis synchronize #2582
  • Nov 24 17:07
    SamRemis synchronize #2582
  • Nov 24 17:06
    SamRemis opened #2582
  • Nov 24 04:06
    kayw-geek commented #2581
  • Nov 24 04:04
    kayw-geek edited #2581
  • Nov 24 04:02
    kayw-geek opened #2581
  • Nov 23 19:38

    aws-sdk-php-automation on master

    Update models for release 3.247.2 release (compare)

  • Nov 23 19:38

    aws-sdk-php-automation on 3.247.2


  • Nov 23 17:20
    stobrien89 commented #2575
  • Nov 23 17:04
    yenfryherrerafeliz commented #2574
  • Nov 23 10:36
    kovshenin commented #2575
  • Nov 23 07:31
    MrJuliuss commented #2556
  • Nov 23 07:22
    MrJuliuss commented #2556
Kien Ngoc Nguyen

How to update/upgrade aws php sdk ?

Just mentioning the version 'version' => '2018-11-15' is enough or need to do something

Lewis Yuburi
Hi all
Darwin Corn
anyone here using the SDK in a provided (custom) lambda runtime? having issues assuming the instance role

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

'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

Vishnu pradeep
Is there any sample to get list of Elemental MediaLive channels currently in the account.
$mediaLive = new MediaLiveClient([
    'version'     => 'latest',
    'region'      => 'ap-south-1',
    'credentials' => [
        'key'    => 'key',
        'secret' => 'secret'
$channels = $mediaLive->listChannels(
            'MaxResults' => 10,
Chase Coalwell
@crazyfree Since you're already using v2.5 or later, you can continue to use v2.
Chase Coalwell
@intermediatech yes, that's the correct operation for listing the channels in an account.
ANybody has used PinpointSMSVoiceClient??
return $pinpoint->sendVoiceMessage([
                '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
I just keep getting resulted in a 415 Unsupported Media Type
Harendra Kumar Kanojiya
is there anyone who can provide me code for transcript generate
Shivanshu Patel
I need help with php sdk, Currently I am using it for kenisis client. I am struggling with finding checkpoint feature with aws php sdk

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."

I have been looking from a very long while but could not find any right version value. Please suggest changes or correction required.
Howard Lopez
@sakshamsingh1 What version of the SDK do you have? If you look at src/data/manifest.json, do you see the following:
    "runtime.sagemaker": {
        "namespace": "SageMakerRuntime",
        "versions": {
            "latest": "2017-05-13",
            "2017-05-13": "2017-05-13"
I have version 3.0, I looked into this file. It looks the same as the above.
@howardlopez thanks it is working now, seems to be some issue due to wrong include files( because it worked when I removed them).
Henry Paradiz
I'm using $iamClient->listUsers() but the result set is missing tags. Is there something I'm doing wrong?
Raivis Kalinins
Hello, how to have one AwsClient singleton for the whole runtime of php script, but use different config (region/endpoint/credentials) based on what lambda function is being invoked?
example code:
    $client = new AwsClient([
        'credentials' => [
            'key' => '...',
            'secret' => '...',
        'region' => 'eu-west-1',
        'version' => '2015-03-31',

    // This is ok, because default is EU region
        'FunctionName' => 'EuFunc',
        'Payload' => '...',

    // How to switch region to US for this?
        '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? :)
        'FunctionName' => 'LocalFunc',
        'Payload' => '...',
John Skoteiniotis
Hi all, this might not be the correct place to ask but I was wondering, is there a way to buy items remotely? We have a website that we want to be able to buy stuff from amazon automatically for the customer, instead of sending the customer to amazon and expecting them to buy it manually. Any chance this exists on an API?
Hi I'm using laravel for aws rekognition I'm sending image for face compare but it returns me {} this
Here is my code
Please help me to find this problem solution
Does anybody know why "describeSpotFleetInstances" does not return "Active Instances" response but instead return the "requestSpotFleet" response. Does somebody sees something not right or I'm too tired and better go sleep.
        $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'];

        $instanceID = null;

            $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;
        }while($instanceID == null);
Aaron McQuade
anyone have any luck signing requests for elasticsearch ? we want to use a role based policy but i havent found any good resources for signing
Aaron McQuade
does anyone have experience with parameter store or secrets manager ? thoughts ? preferences ?
Tom Hatzer
@amcquade based on costs, parameter store is cheaper, has also secret variables but is not as feature rich as the secrets manager. have a look at this overview of differences between the 2 services: https://www.1strategy.com/blog/2019/02/28/aws-parameter-store-vs-aws-secrets-manager/
Aaron McQuade
@tomhatzer thanks for the link! i think i will probably end up using parameter store
Hi all ! I'm trying to use Sns Message and MessageValidator in PHP, but looking at examples I should find them next to SnsClient which I don't...
Currently working on release 3.133.21
find my mistake... I was missing a crucial package... https://github.com/aws/aws-php-sns-message-validator
Rob Mills
Upgrading from v2 to v3 and region is now required. Given this is new, how was the region chosen before?
I'm assuming it must have been defined somehow previously
or inferred in some other manner
Rob Mills
answering my own question ( I think ) it seems that this would have defaulted to us-east-1 (aka US Standard region) if the region was ommitted
Dipranil Chakraborty
Hello, I need some help. I have CSV file in gzip format. is there any way to read the first row by using a PHP script ?
Annette Wilson
Hi, I've been trying to answer this Stack Overflow question: https://stackoverflow.com/questions/60232675/how-can-i-filter-s3-objects-by-size-using-aws-sdk-for-php-v3-aws-resultpaginator/60893697#60893697 and I've found that contrary to the docs, JMESPath expressions in this case are not equivalent between the PHP SDK and the AWS CLI. Specficially, with S3's ListObjectsV2 the "Size" field on S3 objects is declared as "long" and it appears the API unmarshals it as a string, not an integer. Does anyone know if this behaviour is a) intentional, and b) documented?
Harendra Kumar Kanojiya
Is there any one to help ??
Cuong Ngo
Hi everyone, pls help
How to get configuration value in the AWS config file?
Likes CLI built-in supported
aws configure get role_arn --profile=abc
I want to retrieve role_arn value in my second profile at ~/.aws/config file, to put it intro the $stsClient->assumeRole(...)
Cuong Ngo
hello, anybody help pls
Cuong Ngo
Hello...I'm new here...I am trying to understand more about the aws php sdk, but I keep on getting stuck at this link https://docs.aws.amazon.com/sdk-for-php/v3/developer-guide/getting-started_basic-usage.html#creating-a-client which is creating a client...I don't know what I am doing, but would like to be able to launch lambda functions from my wordpress install using PHP...can anybody help me understand what launching a client means and how to do it?
Aaron McQuade
@coronaconspire_twitter do you still need help ?
hi everyone o/
Gentrit Abazi
Hello all can help me someone how to make pagination for s3 in php ?
hi everyone, does anyone have a snippet or a nice solution to send bulk email with aws ses ? All kind of solutions that comes to my mind involves to iterate every email to send 50 blocks on each call to the api....