When creating a scope-down policy for users in an AWS Transfer SFTP server, one can use the policy variables ${transfer:HomeFolder} and ${transfer:HomeDirectory} in that policy, according to the documentation. However, I couldn't find any description of what the difference between the two is. Can someone explain, or link to relevant documentation?
Different between transfer:HomeFolder and transfer:HomeDirectory in AWS policies
7.3k Views Asked by Björn Pollex At
1
There are 1 best solutions below
Related Questions in AMAZON-S3
- Mocking AmazonS3 listObjects function in scala
- S3 integration testing
- Error **net::ERR_CONNECTION_RESET** error while uploading files to AWS S3 using multipart upload and Pre-Signed URL
- Golang lambda upload image into s3 static website
- How to take first x seconds of Audio from a wav file read from AWS S3 as binary stream using Python?
- AWS Lambda Trigger For Same S3 File Name In Quick Succession
- Is there a way to upload a file in digital ocean object storage using php curl
- How to setup AWS credentials for next.js apps?
- S3 pre-signed url not working on whatsapp cloud Api
- How to set custom Origin Name in AWS CDK for CloudFront
- Property 'location' does not exist on type 'File'
- Resource handler returned message: "Unable to validate the following destination configurations
- Webmin CentOS7 AWS backup errors - perl(S3::AWSAuthConnection) can't be installed
- How to access variable to pass through url_for() as src in Flask App
- I cant figure out how to pull scripts from s3 to my aws workspace
Related Questions in AWS-SFTP
- AWS transfer family service for transferring files over sftp to remote sftp server(outbound traffic only!!)
- GPG Decrypt using AWS Transfer Family and Preserve Folder Structure
- How to deny all actions to a specific folder inside S3 bucket?
- AWS SFTP Transfer Family - Session policies
- How do I Get external data into my S3 bucket securely
- AWS SFTP VPC Internet Facing endpoint unable to connect
- AWS Transfer for SFTP using AD connector
- Can I create a single user with public ssh key in AWS SFTP which can be accessible from any machine?
- how to copy file from aws sftp server to s3 bucket using aws lambda
- Unable to update security group on aws transfer server
- AWS Transfer for SFTP write only bucket access?
- Amazon.Transfer.Model.InvalidRequestException: Cannot set HomeDirectory for LOGICAL HomeDirectoryType
- Workaround for unsupported SETSTAT request on SFTP server with sshj
- how to provide a file content as an aws cli option value
- Different between transfer:HomeFolder and transfer:HomeDirectory in AWS policies
Related Questions in AWS-POLICIES
- AWS S3 bucket policy that allows GetObject only from an IP or with Presigned URL
- How to give a group in AWS IAM Identity Center to a Policy?
- AWS Organization SCP EnforceMFA SSO
- Serverless deploy throwing error saying "Resource handler returned message: "Invalid value for the parameter Policy. (Service: Sqs, Status Code: 400,"
- AWS OIDC policy for multiple repositories?
- I can't delete a file from AWS S3 Bucket with Javascript SDK
- AWS Organisation 'Service Access Policy' Deny ability to delete S3 bucket EXCEPT for user identified in 'Condition' using aws:username
- Issue with accessing S3 objects via CloudFront with Amplify and Cognito
- Is it possible to start AWS SCP with a default blacklist--and incrementally add rights?
- AWS Policy for all resources related to a specific Amplify project
- S3 Bucket Policy to grant ListBucket permission to all users of a different AWS account
- AWS Organization/IAM centralize roles and policies
- How can I Restrict S3 Bucket Uploads to Specific Client IP Addresses?
- Can't delete bucket object with s3:DeleteObject policy set
- Lambda Javascript Function Fails to Access EFS-Copied Dependencies
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The difference is kind of implied by the example on that page.
${transfer:HomeFolder}is just the key prefix (e.g.,/my-folder/sub-folder), while${transfer:HomeDirectory}also contains the bucket name (e.g.,/my-bucket/my-folder/sub-folder).AWS Transfer for SFTP recently added support for Logical Home Directories, which you can use to provide a "chroot-like" behavior and lock down your users access to a designated home folder. So if all you're trying to do is restrict a user to a single S3 folder, edit the user's profile in the AWS Transfer console and click the "Restricted" check box. Then you don't have to mess with scopedown policies at all.
If you’re using Custom IDP, follow this blog for a similar set up:
https://aws.amazon.com/blogs/storage/simplify-your-aws-sftp-structure-with-chroot-and-logical-directories/