You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To install this provider, copy and paste this code into your Terraform configuration. Then, run `terraform init`.
56
56
@@ -59,7 +59,7 @@ terraform {
59
59
required_providers {
60
60
epilot-file = {
61
61
source = "epilot-dev/epilot-file"
62
-
version = "0.4.0"
62
+
version = "0.4.1"
63
63
}
64
64
}
65
65
}
@@ -68,19 +68,17 @@ provider "epilot-file" {
68
68
# Configuration options
69
69
}
70
70
```
71
-
<!-- End SDK Installation [installation] -->
71
+
<!-- End Installation [installation] -->
72
72
73
-
<!-- Start SDK Example Usage [usage] -->
74
-
## SDK Example Usage
73
+
<!-- Start Testing the provider locally [usage] -->
74
+
## Testing the provider locally
75
75
76
-
###Testing the provider locally
76
+
#### Local Provider
77
77
78
78
Should you want to validate a change locally, the `--debug` flag allows you to execute the provider against a terraform instance locally.
79
79
80
80
This also allows for debuggers (e.g. delve) to be attached to the provider.
81
81
82
-
### Example
83
-
84
82
```sh
85
83
go run main.go --debug
86
84
# Copy the TF_REATTACH_PROVIDERS env var
@@ -89,13 +87,55 @@ cd examples/your-example
89
87
TF_REATTACH_PROVIDERS=... terraform init
90
88
TF_REATTACH_PROVIDERS=... terraform apply
91
89
```
92
-
<!-- End SDK Example Usage [usage] -->
93
90
94
-
<!-- Start Available Resources and Operations [operations] -->
95
-
## Available Resources and Operations
91
+
#### Compiled Provider
92
+
93
+
Terraform allows you to use local provider builds by setting a `dev_overrides` block in a configuration file called `.terraformrc`. This block overrides all other configured installation methods.
94
+
95
+
1. Execute `go build` to construct a binary called `terraform-provider-epilot-file`
96
+
2. Ensure that the `.terraformrc` file is configured with a `dev_overrides` section such that your local copy of terraform can see the provider binary
97
+
98
+
Terraform searches for the `.terraformrc` file in your home directory and applies any configuration settings you set.
Copy file name to clipboardExpand all lines: docs/data-sources/file.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,26 +28,27 @@ data "epilot-file_file" "my_file" {
28
28
29
29
### Read-Only
30
30
31
-
-`access_control` (String) must be one of ["private", "public-read"]
31
+
-`access_control` (String)
32
32
-`acl` (Attributes) Access control list (ACL) for an entity. Defines sharing access to external orgs or users. (see [below for nested schema](#nestedatt--acl))
33
33
-`additional` (Map of String) Additional fields that are not part of the schema
34
34
-`created_at` (String)
35
35
-`custom_download_url` (String) Custom external download url used for the file
36
36
-`filename` (String)
37
37
-`id` (String) The ID of this resource.
38
+
-`manifest` (List of String) Manifest ID used to create/update the entity
38
39
-`mime_type` (String) MIME type of the file
39
40
-`org` (String)
40
41
-`owners` (Attributes List) (see [below for nested schema](#nestedatt--owners))
41
42
-`public_url` (String) Direct URL for file (public only if file access control is public-read)
42
43
-`purpose` (List of String)
43
44
-`readable_size` (String) Human readable file size
44
45
-`s3ref` (Attributes) (see [below for nested schema](#nestedatt--s3ref))
45
-
-`schema` (String) must be one of ["file"]
46
+
-`schema` (String)
46
47
-`size_bytes` (Number) File size in bytes
47
48
-`source_url` (String) Source URL for the file. Included if the entity was created from source_url, or when ?source_url=true
48
49
-`tags` (List of String)
49
50
-`title` (String)
50
-
-`type` (String) must be one of ["document", "document_template", "text", "image", "video", "audio", "spreadsheet", "presentation", "font", "archive", "application", "unknown"]
51
+
-`type` (String)
51
52
-`updated_at` (String)
52
53
-`versions` (Attributes List) (see [below for nested schema](#nestedatt--versions))
-`access_control` (String) must be one of ["private", "public-read"]; Default: "private"
63
+
-`access_control` (String) Default: "private"; must be one of ["private", "public-read"]
35
64
-`acl` (Attributes) Access control list (ACL) for an entity. Defines sharing access to external orgs or users. (see [below for nested schema](#nestedatt--acl))
65
+
-`activity_id` (String) Activity to include in event feed
36
66
-`additional` (Map of String) Additional fields that are not part of the schema
37
67
-`custom_download_url` (String) Custom external download url used for the file
38
68
-`filename` (String)
69
+
-`fill_activity` (Boolean) Update the diff and entity for the custom activity included in the query.
70
+
Pending state on activity is automatically ended when activity is filled.
71
+
Default: false
72
+
-`manifest` (List of String) Manifest ID used to create/update the entity
39
73
-`mime_type` (String) MIME type of the file
40
74
-`purpose` (List of String)
41
75
-`s3ref` (Attributes) (see [below for nested schema](#nestedatt--s3ref))
0 commit comments