我在 terraform 代码下面取消创建 aws 文件存储网关。我能够创建 SMB 文件共享,但文件/目录访问的设置由:POSIX 权限控制但我想用Windows 访问控制列表更新它。
尝试检查https://www.terraform.io/docs/providers/aws/r/storagegateway_smb_file_share.html但没有找到正确的参数来实现这一点。
有人可以帮我解决这个问题。
resource "aws_storagegateway_gateway" "gateway" {
gateway_ip_address = var.gateway_ip_address
gateway_name = var.gateway_name
gateway_timezone = var.gateway_timezone
gateway_type = "FILE_S3"
smb_active_directory_settings {
domain_name = var.domain
username = var.domain_username
password = var.domain_password
}
}
resource "aws_storagegateway_smb_file_share" "storage_gw" {
authentication = "ActiveDirectory"
gateway_arn = aws_storagegateway_gateway.gateway.arn
default_storage_class = "S3_STANDARD_IA"
location_arn = aws_s3_bucket.bucket.arn
role_arn = aws_iam_role.gateway.arn
valid_user_list = ["@application_group"]
}
提前致谢