Created
January 4, 2021 16:47
-
-
Save jpbarto/490e67e33bffc1006d2407184a1eb4ff to your computer and use it in GitHub Desktop.
Example response format from Lambda to Transfer for SFTP service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"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" | |
} | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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\"}]" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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