equinix_network_file(资源)
资源 equinix_network_file 允许创建和管理 Equinix 网络边缘文件。
用法示例
variable "filepath" { default = "fileFolder/fileName.txt" }
resource "equinix_network_file" "test-file" {
file_name = "fileName.txt"
content = file("${path.module}/${var.filepath}")
metro_code = "SV"
device_type_code = "AVIATRIX_EDGE_10"
process_type = "CLOUD_INIT"
self_managed = true
byol = true
}
论证参考
以下论点得到支持:
file_name- (必填)文件名。content- (必填)上传的文件内容,应为 UTF-8 编码的字符串。metro_code- (必填)文件上传位置的都市区代码。它应该与设备位置的都市区代码一致。type_code- (必填)设备类型代码。process_type- (必需)文件处理类型(LICENSE 或 CLOUD_INIT)。self_managed- (必需)布尔值,用于确定设备管理模式,即self-managed或Equinix-managed。byol- (必需)布尔值,用于确定设备许可模式,即bring your own license或subscription。
属性参考
除了上述所有参数外,还会导出以下属性:
uuid- 文件资源的唯一标识符。status- 文件上传状态。
进口
可以使用现有 ID 导入此资源:
terraform import equinix_network_file.example {existing_id}
无法导入 content、self_managed 和 byol 字段。