Thank you for submitting your request for supporting HomeDirectoryType and HomeDirectoryMappings parameter to build CloudFormation templates for your SFTP server and users. We will add it to our backlog and make an announcement in the forum once it is available. Meanwhile, would you consider the option of scripting out using API or CLI commands for the CreateUser/UpdateUser operations to get access to the same 'restricted' functionality?
Thanks, smithaAWS. I create users with CloudFormation, then I apply type and mappings using
aws transfer update-user command. I'm glad that you consider adding this functionality to templates, this would simplify things.
Following up on your request, you can now use the "Restricted" feature when creating users through CloudFormation templates. Please refer to the documentation for details:https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-transfer-user.html and let us know if you have any questions.
I don't see any documentation in that link on how to specify the restricted user in the template.
Edit: Is the use of 'LOGICAL' directory type with a mapping to the home directory the equivalent of the 'restricted' option?
Edited by: jtd on Jan 28, 2021 10:18 AM
How to specify subnet with no preference like web interface in a template?asked 3 years ago
How to detect drifts of Cloudformation Custom Resource?asked 4 months ago
Create a github connection for app runner using cloudformationasked 5 months ago
CDK vs CloudFormation: is the latter somehow deprecated, in favour of the the newer? Or do they cover different use cases?asked a month ago
Is there any limit to the number or age of events logged in CloudFormation event history?Accepted Answerasked 10 months ago
What is the CloudFormation equivalent of the "Restricted" user?asked 3 years ago
Custom Identity Provider - Restrictedasked 2 years ago
Are minimum and maximum allowed in the Schema of AWS::ApiGatewayV2::Model in CloudFormation?asked 5 months ago
How can you define the resource's location in CloudFormation?Accepted Answerasked 2 years ago
CloudFormation reference the userId that is running the Templateasked 3 months ago