How to access s3 when a prefix is restricted.
Hi
When the following IAM policy is set, I could not access to S3 after Remote Directory is set to /bucket-name/folder1/ on WinSCP.
Could you tell me to access s3 in this case ?
"Action": "s3:ListBucket",
"Resource": "arn:aws:s3:::bucket-name",
"Condition": {
"StringLike": {
"s3:prefix": "folder1/*"
}
Error message in log file
(XXXXX is mask)
. 2018-12-12 11:30:21.693 [<?xml version="1.0" encoding="UTF-8"?>
. 2018-12-12 11:30:21.693 <Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>XXXXX</RequestId><HostId>XXXXX</HostId></Error>]
Enviroment
* WinSCP 5.13.5
* Windows 7
When the following IAM policy is set, I could not access to S3 after Remote Directory is set to /bucket-name/folder1/ on WinSCP.
Could you tell me to access s3 in this case ?
"Action": "s3:ListBucket",
"Resource": "arn:aws:s3:::bucket-name",
"Condition": {
"StringLike": {
"s3:prefix": "folder1/*"
}
Error message in log file
(XXXXX is mask)
. 2018-12-12 11:30:21.693 [<?xml version="1.0" encoding="UTF-8"?>
. 2018-12-12 11:30:21.693 <Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>XXXXX</RequestId><HostId>XXXXX</HostId></Error>]
Enviroment
* WinSCP 5.13.5
* Windows 7