What is the CloudFormation equivalent of the "Restricted" user?

0

While in SERVICE_MANAGED mode (i.e. NOT using a custom IDP), how to specify HomeDirectoryType and HomeDirectoryMappings in CloudFormation template when creating a user? Is an equivalent of the "Restricted" checkbox exist for templates?

leshik
질문됨 4년 전388회 조회
4개 답변
0

leshik:

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,
Smitha

AWS
답변함 4년 전
0

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.

leshik
답변함 4년 전
0

leshik:

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.

Thanks,
Smitha

AWS
답변함 4년 전
0

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

jtd
답변함 3년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠