【问题标题】:aws_storagegateway_gateway SMB share File/directory access controlled by option with terraformaws_storagegateway_gateway SMB 共享文件/目录访问由 terraform 选项控制
【发布时间】:2020-09-16 20:32:46
【问题描述】:

我在 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"]
}

提前致谢

【问题讨论】:

  • 我可以使用下面的 cli 命令 aws storagegateway update-smb-file-share --file-share-arn arn:aws:storagegateway:eu-central-1:xxxxxxxx:gateway 解决这个问题/sgw-xxxxxx --smbacl-enabled

标签: amazon-web-services aws-storage-gateway


【解决方案1】:

我可以用下面的 cli 命令解决这个问题

aws storagegateway update-smb-file-share --file-share-arn arn:aws:storagegateway:eu-central-1:xxxxxxxx:gateway/sgw-xxxxxx --smbacl-enabled

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-02-12
    • 2018-01-03
    • 2018-07-26
    • 2020-01-14
    相关资源
    最近更新 更多