Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jpbarto/490e67e33bffc1006d2407184a1eb4ff to your computer and use it in GitHub Desktop.
Save jpbarto/490e67e33bffc1006d2407184a1eb4ff to your computer and use it in GitHub Desktop.
Example response format from Lambda to Transfer for SFTP service
[
{
"Entry": "/public/research",
"Target": "/maxld-public-bucket"
},
{
"Entry": "/subscribed/2018/indices",
"Target": "/maxld-subscribe-bucket/historical/2018/indices"
},
{
"Entry": "/subscribed/2019/indices",
"Target": "/maxld-subscribe-bucket/historical/2019/indices"
},
{
"Entry": "/subscribed/2019/equities",
"Target": "/maxld-subscribe-bucket/historical/2019/equities"
}
]
{
"Role": "arn:aws:iam::776347453069:role/logical-directory-demo-SftpIdp-4Q-TransferUserRole-CY9KQNH5EXZF",
"Policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Sid\":\"AllowListingOfFolder\",\"Action\":[\"s3:ListBucket\"],\"Effect\":\"Allow\",\"Resource\":[\"arn:aws:s3:::maxld-public-bucket\",\"arn:aws:s3:::maxld-subscribe-bucket\"]},{\"Sid\":\"AllowObjectAccess\",\"Effect\":\"Allow\",\"Action\":[\"s3:GetObject\",\"s3:GetObjectVersion\"],\"Resource\":[\"arn:aws:s3:::maxld-public-bucket/global/*\",\"arn:aws:s3:::maxld-subscribe-bucket/historical/2018/indices/*\",\"arn:aws:s3:::maxld-subscribe-bucket/historical/2019/indices/*\",\"arn:aws:s3:::maxld-subscribe-bucket/historical/2019/equities/*\"]}]}",
"HomeDirectoryType": "LOGICAL",
"HomeDirectoryDetails": "[{\"Entry\":\"/public/research\",\"Target\":\"/maxld-public-bucket\"},{\"Entry\":\"/subscribed/2018/indices\",\"Target\":\"/maxld-subscribe-bucket/historical/2018/indices\"},{\"Entry\":\"/subscribed/2019/indices\",\"Target\":\"/maxld-subscribe-bucket/historical/2019/indices\"},{\"Entry\":\"/subscribed/2019/equities\",\"Target\":\"/maxld-subscribe-bucket/historical/2019/equities\"}]"
}
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowListingOfFolder",
"Action": [
"s3:ListBucket"
],
"Effect": "Allow",
"Resource": [
"arn:aws:s3:::maxld-public-bucket",
"arn:aws:s3:::maxld-subscribe-bucket"
]
},
{
"Sid": "AllowObjectAccess",
"Effect": "Allow",
"Action": [
"s3:GetObject",
"s3:GetObjectVersion"
],
"Resource": [
"arn:aws:s3:::maxld-public-bucket/global/*",
"arn:aws:s3:::maxld-subscribe-bucket/historical/2018/indices/*",
"arn:aws:s3:::maxld-subscribe-bucket/historical/2019/indices/*",
"arn:aws:s3:::maxld-subscribe-bucket/historical/2019/equities/*"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment