back
terraform {
required_providers {
aws = ">= 3.35.0"
}
}
top
module "aws_transfer_user" {
source = "./modules/aws/r/aws_transfer_user"
# home_directory - (optional) is a type of string
home_directory = null
# home_directory_type - (optional) is a type of string
home_directory_type = null
# policy - (optional) is a type of string
policy = null
# role - (required) is a type of string
role = null
# server_id - (required) is a type of string
server_id = null
# tags - (optional) is a type of map of string
tags = {}
# user_name - (required) is a type of string
user_name = null
home_directory_mappings = [{
entry = null
target = null
}]
}
top
variable "home_directory" {
description = "(optional)"
type = string
default = null
}
variable "home_directory_type" {
description = "(optional)"
type = string
default = null
}
variable "policy" {
description = "(optional)"
type = string
default = null
}
variable "role" {
description = "(required)"
type = string
}
variable "server_id" {
description = "(required)"
type = string
}
variable "tags" {
description = "(optional)"
type = map(string)
default = null
}
variable "user_name" {
description = "(required)"
type = string
}
variable "home_directory_mappings" {
description = "nested block: NestingList, min items: 0, max items: 0"
type = set(object(
{
entry = string
target = string
}
))
default = []
}
top
resource "aws_transfer_user" "this" {
# home_directory - (optional) is a type of string
home_directory = var.home_directory
# home_directory_type - (optional) is a type of string
home_directory_type = var.home_directory_type
# policy - (optional) is a type of string
policy = var.policy
# role - (required) is a type of string
role = var.role
# server_id - (required) is a type of string
server_id = var.server_id
# tags - (optional) is a type of map of string
tags = var.tags
# user_name - (required) is a type of string
user_name = var.user_name
dynamic "home_directory_mappings" {
for_each = var.home_directory_mappings
content {
# entry - (required) is a type of string
entry = home_directory_mappings.value["entry"]
# target - (required) is a type of string
target = home_directory_mappings.value["target"]
}
}
}
top
output "arn" {
description = "returns a string"
value = aws_transfer_user.this.arn
}
output "id" {
description = "returns a string"
value = aws_transfer_user.this.id
}
output "this" {
value = aws_transfer_user.this
}
top