AWS AssumeRole authorization not working

前端 未结 3 867
忘了有多久
忘了有多久 2020-12-29 05:36

I am attempting to call the AssumeRole function using AWS sts in my PHP program since I want to create temporary credentials to allow a user to create an object for an AWS b

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-29 05:50

    Maybe you should assign your sts region and endpoint:

    $sts = StsClient::factory(array(
        //...      
        'region'   => 'us-west-2',                                                                                                                                                                              
        'endpoint' => 'https://sts.us-west-2.amazonaws.com', 
    ));
    

提交回复
热议问题