Skip to content

Commit

Permalink
fix: adding the home directory variable (#3)
Browse files Browse the repository at this point in the history
Signed-off-by: Alban MUSSI <[email protected]>
  • Loading branch information
bitintheskud authored and ArchiFleKs committed Jan 16, 2020
1 parent 3adaf07 commit bc46163
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions users.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,12 @@ resource "aws_iam_role_policy" "sftp_user_policy" {
}

resource "aws_transfer_user" "sftp_user" {
count = length(var.sftp_users)
server_id = aws_transfer_server.sftp.id
user_name = var.sftp_users[count.index]["name"]
role = aws_iam_role.sftp_user_role[count.index].arn
tags = var.custom_tags
count = length(var.sftp_users)
server_id = aws_transfer_server.sftp.id
user_name = var.sftp_users[count.index]["name"]
home_directory = var.sftp_users[count.index]["home_directory"]
role = aws_iam_role.sftp_user_role[count.index].arn
tags = var.custom_tags
}

resource "aws_transfer_ssh_key" "sftp_user_key" {
Expand Down

0 comments on commit bc46163

Please sign in to comment.