我配置了以下适配器和服务:
knp_gaufrette:
adapters:
sc_documents:
aws_s3:
service_id: sc.aws_s3.client
bucket_name: HIDDEN
options:
directory: documents
create: true
filesystems:
sc_documents_fs:
adapter: sc_documents
alias: sc_document_storage
sc.aws_s3.client:
class: Aws\S3\S3Client
factory_class: Aws\S3\S3Client
factory_method: factory
arguments:
-
key: 'HIDDEN'
secret: 'HIDDEN'
region: 'eu-central-1'
version: '2006-03-01'
我不断收到以下读取和写入 错误:从实例配置文件元数据服务器检索凭据时出错。(cURL 错误 7:无法连接到 169.254.169.254 端口 80:网络无法访问(参见http://curl.haxx.se/libcurl/c/libcurl-errors.html))
桶策略是:
"Id": "Policy1445959171046",
"Version": "2012-10-17",
"Statement": [
{
"Sid": "STMT",
"Action": "s3:*",
"Effect": "Allow",
"Resource": "arn:aws:s3:::HIDDEN/*",
"Principal": {
"AWS": "*"
}
}
]
我尝试了不同的帐户,但没有一个有效。我想知道我做错了什么。我需要启用其他功能吗?
谢谢!