Drupal 7 我需要替换文件系统中的图像,还需要替换 S3 存储桶而不更改 S3 上图像的 url
Drupal 7 I need to replace images in files system and also replace over S3 bucket without changing url of image over S3
Drupal 7 我需要替换文件系统中的图像,还需要替换 S3 存储桶而不更改 url S3 上的图像。
我正在使用 s3fs 模块通过 S3 上传图像。
授予 Cross-Account 上传对象的权限,同时确保存储桶拥有者具有完全控制权
{
"Version":"2012-10-17",
"Statement":[
{
"Sid":"111",
"Effect":"Allow",
"Principal":{"AWS":"1111111111"},
"Action":"s3:PutObject",
"Resource":"arn:aws:s3:::examplebucket/*"
},
{
"Sid":"112",
"Effect":"Deny",
"Principal":{"AWS":"1111111111" },
"Action":"s3:PutObject",
"Resource":"arn:aws:s3:::examplebucket/*",
"Condition": {
"StringNotEquals": {"s3:x-amz-grant-full-control":["emailAddress=xyz@amazon.com"]}
}
}
]
}
Drupal 7 我需要替换文件系统中的图像,还需要替换 S3 存储桶而不更改 url S3 上的图像。
我正在使用 s3fs 模块通过 S3 上传图像。
授予 Cross-Account 上传对象的权限,同时确保存储桶拥有者具有完全控制权
{
"Version":"2012-10-17",
"Statement":[
{
"Sid":"111",
"Effect":"Allow",
"Principal":{"AWS":"1111111111"},
"Action":"s3:PutObject",
"Resource":"arn:aws:s3:::examplebucket/*"
},
{
"Sid":"112",
"Effect":"Deny",
"Principal":{"AWS":"1111111111" },
"Action":"s3:PutObject",
"Resource":"arn:aws:s3:::examplebucket/*",
"Condition": {
"StringNotEquals": {"s3:x-amz-grant-full-control":["emailAddress=xyz@amazon.com"]}
}
}
]
}