Skip to content

Security Credential issue. #22

@allanhortle

Description

@allanhortle

Trying to just upload files. It feels like my key and secret arent working but i've double checked they are the right ones. Codes copied straight out of the readme.

Error:

Error retrieving credentials from the instance profile metadata server. 
When you are not running inside of Amazon EC2, you must provide your AWS
access key ID and secret access key in the "key" and "secret" options when 
creating a client or provide an instantiated
Aws\Common\Credentials\CredentialsInterface object.
([curl] 7: Failed to connect to 169.254.169.254: Host is down [url] 
http://169.254.169.254/latest/meta-data/iam/security-credentials/)

Function:

$s3 = AWS::get('s3');
$s3->putObject(array(
    'Bucket'        => '[bucketname]',
    'Key'           => '[key]',
    'SourceFile'    => '[file]'
)); 

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions