Skip to content

Commit

Permalink
chore:regenerate
Browse files Browse the repository at this point in the history
  • Loading branch information
Nishu Goel committed Jan 23, 2024
1 parent b5f4941 commit d4c72f6
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 38 deletions.
15 changes: 11 additions & 4 deletions docs/resources/file.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,17 @@ File Resource

```terraform
resource "epilot-file_file" "my_file" {
access_control = "private"
filename = epilot-file_upload_file.my_uploadfile.filename
bucket = epilot-file_upload_file.my_uploadfile.s3ref.bucket
key = epilot-file_upload_file.my_uploadfile.s3ref.key
access_control = "public-read"
additional_properties = "{ \"see\": \"documentation\" }"
bucket = "epilot-files-prod"
custom_download_url = "https://both-legging.net"
document_type = "archive"
file_entity_id = "...my_file_entity_id..."
filename = "document.pdf"
key = "123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf"
tags = [
"...",
]
}
```

Expand Down
28 changes: 1 addition & 27 deletions examples/README.md
Original file line number Diff line number Diff line change
@@ -1,27 +1 @@
## Upload file to S3

```
resource "epilot-file_upload_file" "my_uploadfile" {
filename = "pumpkin.png"
mime_type = "image/png"
}
```

```
output "val" {
value = epilot-file_upload_file.my_uploadfile
}
```

## Save uploaded file

```
resource "epilot-file_file" "my_file" {
access_control = "private"
filename = epilot-file_upload_file.my_uploadfile.filename
bucket = epilot-file_upload_file.my_uploadfile.s3ref.bucket
key = epilot-file_upload_file.my_uploadfile.s3ref.key
}
```

# TODO
15 changes: 11 additions & 4 deletions examples/resources/epilot-file_file/resource.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
resource "epilot-file_file" "my_file" {
access_control = "private"
filename = epilot-file_upload_file.my_uploadfile.filename
bucket = epilot-file_upload_file.my_uploadfile.s3ref.bucket
key = epilot-file_upload_file.my_uploadfile.s3ref.key
access_control = "public-read"
additional_properties = "{ \"see\": \"documentation\" }"
bucket = "epilot-files-prod"
custom_download_url = "https://both-legging.net"
document_type = "archive"
file_entity_id = "...my_file_entity_id..."
filename = "document.pdf"
key = "123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf"
tags = [
"...",
]
}
2 changes: 1 addition & 1 deletion examples/resources/epilot-file_upload_file/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
epilot-file = {
source = "epilot-dev/epilot-file"
version = "2.1.1"
version = "2.2.2"
}
aws = {
source = "hashicorp/aws"
Expand Down
2 changes: 0 additions & 2 deletions examples/resources/epilot-file_upload_file/resource.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,3 @@ resource "epilot-file_file" "my_file" {
key = epilot-file_upload_file.my_uploadfile.s3ref.key
entity_id = ""
}


0 comments on commit d4c72f6

Please sign in to comment.