Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Aug 23 22:30

    srchase on master

    add documentation type for curr… (compare)

  • Aug 23 22:30
    srchase closed #1870
  • Aug 23 22:01
    srchase review_requested #1870
  • Aug 23 21:45
    srchase opened #1870
  • Aug 23 20:37

    srchase on master

    Fix EventParsingIterator exampl… (compare)

  • Aug 23 20:37
    srchase closed #1869
  • Aug 23 19:41
    codecov-io commented #1869
  • Aug 23 19:41
    codecov-io commented #1869
  • Aug 23 19:31
    srchase synchronize #1869
  • Aug 23 18:14

    aws-sdk-php-automation on 3.110.2

    (compare)

  • Aug 23 18:14

    aws-sdk-php-automation on master

    Update models for release 3.110.2 release (compare)

  • Aug 23 18:03
    srchase synchronize #1869
  • Aug 23 17:57
    srchase synchronize #1869
  • Aug 23 16:34
    srchase review_requested #1869
  • Aug 23 16:33
    srchase opened #1869
  • Aug 22 18:33

    aws-sdk-php-automation on 3.110.1

    (compare)

  • Aug 22 18:33

    aws-sdk-php-automation on master

    Update models for release 3.110.1 release (compare)

  • Aug 22 13:44
    davelassanske commented #1866
  • Aug 22 07:13
    bkarv commented #1851
  • Aug 21 22:24

    howardlopez on master

    S3 integ waiter tweak (#1868) … (compare)

Jayvee Pino Ayao
@reyven90
hello :-)
jess9067
@jess9067
Hi. I am trying to write a script that creates an EFS file system and then creates a mount target for it. When using the createMountTarget command after createFileSystem command I get an error about the file system not being in available state. I have tried promises, but they finish before the file system is completed. Is there a way to force createMountTarget to only run after the new file system is in available status?
Jami Schwarzwalder
@jschwarzwalder
You should be able to write an if statement that would check if the FileSystem is available yet. https://docs.aws.amazon.com/aws-sdk-php/v3/api/api-elasticfilesystem-2015-02-01.html#describefilesystems
Check LifeCycleState
Erik Thiart
@ErikThiart

any guide on how to POST to a API Gateway endpoint using the SDK?

I literally just need to query one url endpoint, but they use API Gateway so need to do a sig4 POST to get back a json string

kevin olson
@acidjazz
hi everyone o/
finally on a project where i need to use this SDK :)
Sharjeel Zubair
@sharjeelz
hi, any one implemented CloudWatch Sdk with PHP
Jami Schwarzwalder
@jschwarzwalder
Here are some code samples for cloud watch using the PHP SDK https://docs.aws.amazon.com/sdk-for-php/v3/developer-guide/cw-examples.html
Ramiro Varandas Jr
@ramirovjr
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
Ramiro Varandas Jr
@ramirovjr

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

Teodor
@PixellUp
$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 ?
Jami Schwarzwalder
@jschwarzwalder
Are you using describe instance to get state?
Teodor
@PixellUp
@jschwarzwalder I was looking for solution more like this https://docs.aws.amazon.com/sdk-for-php/v3/developer-guide/guide_waiters.html
but hey if the above doesn't work I'll have to use the describe instance method and sleep until I get 'state' => 'running'
Ramiro Varandas Jr
@ramirovjr
@PixellUp you can subscribe a SNS webhook to get EC2 Instance State Change https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/EventTypes.html#ec2_event_type
Teodor
@PixellUp
@ramirovjr @jschwarzwalder Thanks for the help. I've done it with describeInstances and do while loop with 5 seconds sleep
Ghost
@ghost~5c219531d73408ce4fb2d084
Hello! Question: is there a special version of aws-sdk-php that includes the MultipartUploader class? I installed via composer and as I'm searching through the vendor folders, I can't find this class. Thanks.
Ghost
@ghost~5c219531d73408ce4fb2d084
Sorry for the post. F*&^ng typo was the problem. Merry Christmas/Happy Holidays!
kevin olson
@acidjazz
anyone here ever successfully setup reverse DNS with Route 53 ?
Aaron McQuade
@amcquade
any tips on updating the sdk with composer ?
Aaron McQuade
@amcquade
and/or have success using the new Transfer api ?
Paul Dragoonis
@dragoonis
I'm looking for docs on sending metris to xray from PHP application. I want this to be ASync from the PHP app to the XRay daemon running on my EC2 instance.
Kien Ngoc Nguyen
@tgsoon2002
Hi all
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?