tencentcloudstack/terraform-provider-tencentcloud

tencentcloud_cbs_storage_attachment 支持挂载存储后指定挂载路径及格式化文件系统

greatbody opened this issue · 0 comments

当前状态:使用tencentcloud_cbs_storage_attachment挂载后,可以通过

sudo lsblk -o "NAME,KNAME,SIZE,TYPE,UUID"

查看到挂载的硬盘,但是硬盘没有格式化和挂载到一个路径。例如自动格式化成 ext4 文件系统,挂载到 /mnt/storage1

期待支持如下的配置

resource "tencentcloud_cbs_storage_attachment" "attachment" {
  storage_id  = tencentcloud_cbs_storage.storage.id
  instance_id = tencentcloud_instance.typhoon_instance.id
  filesystem = "ext4"
  mount_dir = "/mnt/storage1"
}