I created an EC2 Ubuntu instance.
The following works using the AWS 2.6 SDK for PHP:
$client = DynamoDbClient::factory(array( 'key' => 'xxx', 'secret' => 'xxx', 'region' => 'eu-west-1' ));
I created a credentials file in ~/.aws/credentials .
I put this in /home/ubuntu/.aws/credentials
[default] aws_access_key_id=xxx aws_secret_access_key=xxx
Trying to do the following does not work and gives an InstanceProfileCredentialsException :
$client = DynamoDbClient::factory(array( 'profile' => 'default', 'region' => 'eu-west-1' ));
The www-data user and the ubuntu user.
In which folder should I put the credential file?
amazon-web-services amazon-ec2
Guus
source share