S3 policy - Transfer Family SFTP

0

Hello, I'm facing a concern trying to create a policy for some SFTP users, the thing that I'm trying to do is to give permission to see specific files inside the bucket but I don't find the right way to do it.

已提问 2 年前377 查看次数
1 回答
0

Have you tried setting up the policy as follows ? :

{ "Version":"2012-10-17", "Statement": [ { "Sid": "List", "Action": ["s3:ListBucket"], "Effect": "Allow", "Resource": ["arn:aws:s3:::bucket"] }, { "Sid": "AllowAllS3ActionsInUserFolder", "Effect": "Allow", "Action": ["s3:GetObject"], "Resource": ["arn:aws:s3:::bucket/home/filename.txt"] } ] }

AWS
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则