by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jul 14 21:09
    codecov-commenter commented #2047
  • Jul 14 20:57
    codecov-commenter commented #2047
  • Jul 14 20:49
    codecov-commenter commented #2047
  • Jul 14 20:06
    SamRemis synchronize #2047
  • Jul 14 20:05
    Stollie commented #2057
  • Jul 14 19:57
    gmponos commented #2057
  • Jul 14 19:29
    Stollie commented #2057
  • Jul 14 19:22
    Stollie commented #2057
  • Jul 14 18:00
    SamRemis synchronize #2047
  • Jul 14 17:20
    SamRemis synchronize #2047
  • Jul 14 17:12
    SamRemis synchronize #2047
  • Jul 14 17:07
    SamRemis synchronize #2047
  • Jul 14 16:55

    howardlopez on master

    Retries stats fix (#2058) * Fi… (compare)

  • Jul 14 16:55
    howardlopez closed #2058
  • Jul 14 13:25
    SANiMirrorOfLight commented #1979
  • Jul 13 23:31
    codecov-commenter commented #1881
  • Jul 13 23:30
    codecov-commenter commented #1881
  • Jul 13 23:19
    codecov-commenter commented #1881
  • Jul 13 22:50
    codecov-commenter commented #1881
  • Jul 13 22:41
    codecov-commenter commented #1881
Kien Ngoc Nguyen
@tgsoon2002
I just start work on the amazon sdk for php
and I dont' know how to make this work.
i used this at work.
and we have a server with running wordpress.
Kien Ngoc Nguyen
@tgsoon2002
samuel6446
@samuel6446

How to update/upgrade aws php sdk ?

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

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

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

Vishnu pradeep
@intermediatech
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,
        ]
    );
var_dump($channels);
Chase Coalwell
@srchase
@crazyfree Since you're already using v2.5 or later, you can continue to use v2.
Chase Coalwell
@srchase
@intermediatech yes, that's the correct operation for listing the channels in an account.
cemarta7
@cemarta7
ANybody has used PinpointSMSVoiceClient??
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
            ]);
I just keep getting resulted in a 415 Unsupported Media Type
Harendra Kumar Kanojiya
@harendra21
is there anyone who can provide me code for transcript generate
Shivanshu Patel
@shivanshuit914
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
sakshamsingh1
@sakshamsingh1

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
@howardlopez
@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"
        }
    },
sakshamsingh1
@sakshamsingh1
I have version 3.0, I looked into this file. It looks the same as the above.
sakshamsingh1
@sakshamsingh1
@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
@hparadiz
I'm using $iamClient->listUsers() but the result set is missing tags. Is there something I'm doing wrong?
Raivis Kalinins
@Swanty
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
    $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' => '...',
    ]);
John Skoteiniotis
@j0hnskot
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?
ziasultan2
@ziasultan2
image.png
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
Teodor
@PixellUp
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'];
        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);
Aaron McQuade
@amcquade
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
@amcquade
does anyone have experience with parameter store or secrets manager ? thoughts ? preferences ?
Tom Hatzer
@tomhatzer
@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
@amcquade
@tomhatzer thanks for the link! i think i will probably end up using parameter store
mdemauroy
@mdemauroy
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
mdemauroy
@mdemauroy
find my mistake... I was missing a crucial package... https://github.com/aws/aws-php-sns-message-validator
Rob Mills
@robjmills_twitter
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
@robjmills_twitter
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
@dipranil-codeclouds
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
@annettejanewilson
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
@harendra21
Hi
Is there any one to help ??
Cuong Ngo
@nvcken
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
@nvcken
hello, anybody help pls
Cuong Ngo
@nvcken
coronaconspire
@coronaconspire_twitter
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
@amcquade
@coronaconspire_twitter do you still need help ?