Skip to main content
Providers

File

A resource of the Files provider, version 0.2.0, in its Files group. Import it with:

import File from "files/files"

Example

resource File example {
    path        = "example-value"
    content     = "example-value"
    permissions = "example-value"
}

Properties

Set by your code in the resource block. A required one must be set; any other you leave out takes the value under Default, if it has one.

NameTypeDefaultRequiredDescription
pathstring—No
contentstring—No
permissionsstring—No

Set by Files after the resource is created: your code can read them but not set them. An importable one identifies an existing resource.

NameTypeImportableDescription
checksumstringNo
lastModifiedstringNo

On this page