2016-08-16 6 views
0
이 오류 받고 있어요

:이 시나리오에서는AWS S3 오류가 드루팔에서 수입 덤프 7

Aws\Common\Exception\InstanceProfileCredentialsException: 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] 28: Connection timed out after 5010 milliseconds [url] http://169.254.169.254/latest/meta-data/iam/security-credentials/) in Aws\Common\InstanceMetadata\InstanceMetadataClient->getInstanceProfileCredentials() (line 85 of /var/www/public/sites/all/libraries/awssdk2/Aws/Common/InstanceMetadata/InstanceMetadataClient.php).

:

내가 한 양동이에서 드루팔 7의 AWS S3 모듈을 사용하고 있습니다를 S3은 개발을 위해 작동하고 다른 하나는 준비를 위해 작동합니다.

클라이언트가 스테이징에서 일부 컨텐츠를 추가 한 후, 스테이징에서 새 DB 덤프를 가져오고 개발할 때 오류 덤프를 가져 오려고합니다. 새 덤프의 이미지 경로와 AWS 자격 증명이 잘 작동하고, 문제는 새 DB 덤프입니다.

누구를 도와주세요.

답변

0

인스턴스가 지정된 S3 버킷에 대해 인증 할 수없는 것 같습니다.

1) 환경 경로에 AWS 자격 증명을 설정하십시오 (권장하지 않음). 대신 S3 리소스에 대한 액세스 권한을 부여하기 위해 인스턴스에 AWS IAM 역할을 할당합니다.

2) 현재 서버가 버킷에 액세스 할 수 있도록 S3 버킷 권한을 변경해야합니다.

실제 사례인지 잘 모르겠습니다. 정확한 해결책을 제시 할 수 있도록 질문을 자세히 작성하십시오. 댓글을 달 수 없습니다. 그래서, 답변을 게시했다.