1 Answer
- Newest
- Most votes
- Most comments
0
For the s3:ListBucket
action, I think you also need to permit the prefix without the trailing /
. I suggest you try including both the /*
form that you have now, and also the same without /*
at the end to allow the folder name without a trailing slash:
{
"Effect": "Allow",
"Action": "s3:ListBucket",
"Resource": [
"arn:aws:s3:::test-transferfamily-demo",
"arn:aws:s3:::sftp-demo2"
],
"Condition": {
"StringLike": {
"s3:prefix": [
"${transfer:UserName}",
"${transfer:UserName}/*",
]
}
}
}
Relevant content
- asked 3 years ago
- asked 2 years ago
- asked 2 years ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 2 months ago