Skip to content

Commit

Permalink
Added bucket name to the path for PATH homedirs (#99)
Browse files Browse the repository at this point in the history
* Added bucket name to the path for PATH homedirs

* home_directory logic
- Additional logic based on whether or not the home directory is `LOGICAL` or `PATH`
- Sets the `home_directory` to null if type is `LOGICAL`
  • Loading branch information
zachreborn authored Dec 4, 2024
1 parent b73470d commit 67cbef8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/aws/transfer_family/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ module "transfer_family_iam_role" {
resource "aws_transfer_user" "this" {
for_each = var.users

home_directory = each.value.home_directory
home_directory = each.value.home_directory_type == "LOGICAL" ? null : (each.value.home_directory == null ? "/${module.bucket.s3_bucket_id}" : "/${module.bucket.s3_bucket_id}/${each.value.home_directory}")
home_directory_type = each.value.home_directory_type
policy = each.value.home_directory_type == "LOGICAL" ? null : (each.value.policy == null ? local.default_session_policy : each.value.policy)
role = module.transfer_family_iam_role.arn
Expand Down

0 comments on commit 67cbef8

Please sign in to comment.