Skip to content

Instantly share code, notes, and snippets.

@YanhaoYang
Created May 25, 2019 08:24
Show Gist options
  • Save YanhaoYang/27570dc5b5b3211e037da3d378a6d83c to your computer and use it in GitHub Desktop.
Save YanhaoYang/27570dc5b5b3211e037da3d378a6d83c to your computer and use it in GitHub Desktop.
aws ftp role
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowListingOfUserFolder",
"Action": [
"s3:ListBucket",
"s3:GetBucketLocation"
],
"Effect": "Allow",
"Resource": [
"arn:aws:s3:::my-ftp"
]
},
{
"Sid": "HomeDirObjectAccess",
"Effect": "Allow",
"Action": [
"s3:PutObject",
"s3:GetObject",
"s3:DeleteObjectVersion",
"s3:DeleteObject",
"s3:GetObjectVersion"
],
"Resource": "arn:aws:s3:::my-ftp/*"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment