AWS CLI https://docs.aws.amazon.com/cli/latest/reference/transfer/create-user.html provideshome-directory-type and home-directory-mappings to control logical mapping between S3 and SFTP. Terraform AWS provider does not support the feature.
resource "aws_transfer_user" "sftp_user_dbs" {
# other options
# ...
home_directory_type = "LOGICAL"
home_directory_mapping = {
entry = "your-personal-report.pdf"
target = "/bucket3/customized-reports/${transfer:UserName}.pdf"
}
}
https://docs.aws.amazon.com/cli/latest/reference/transfer/create-user.html
Is this going to be merged?
Support for this functionality has been merged and will release with version 3.8.0 of the Terraform AWS Provider, later this week. Thanks to @teraken0509 and @quinyx-tjeerd for the implementation. 👍
This has been released in version 3.8.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.
For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks!
I'm going to lock this issue because it has been closed for _30 days_ ⏳. This helps our maintainers find and focus on the active issues.
If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!
Most helpful comment
Is this going to be merged?