Skip to content

Commit

Permalink
updated comments
Browse files Browse the repository at this point in the history
  • Loading branch information
zachreborn committed Mar 21, 2024
1 parent fe10eb5 commit 4d1125b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 0 additions & 5 deletions modules/aws/transfer_family/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,6 @@ resource "aws_transfer_user" "this" {
tags = var.tags
user_name = each.value.username

home_directory_mappings {
entry = "/"
target = "/${module.bucket.s3_bucket_id}/$${Transfer:UserName}"
}

dynamic "home_directory_mappings" {
# Disables the dynamic block of home_directory_mappings if home_directory_type is not "LOGICAL"
for_each = each.value.home_directory_type == "LOGICAL" ? [1] : []
Expand Down
4 changes: 2 additions & 2 deletions modules/aws/transfer_family/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,9 @@ variable "vpc_id" {
variable "users" {
description = "(Optional) A map of user names and their configuration"
type = map(object({
home_directory = oprional(string)
home_directory = oprional(string) # Cannot be set if home_directory_type is set to "LOGICAL".
home_directory_type = optional(string, "LOGICAL") # Default is "LOGICAL"
policy = optional(string)
policy = optional(string) # Set for a custom session policy see https://docs.aws.amazon.com/transfer/latest/userguide/requirements-roles.html#session-policy for more information
username = string
}))
default = {}
Expand Down

0 comments on commit 4d1125b

Please sign in to comment.