From d4c72f63a28071fd5531187910397ac5c8336703 Mon Sep 17 00:00:00 2001 From: Nishu Goel Date: Tue, 23 Jan 2024 14:00:38 +0100 Subject: [PATCH] chore:regenerate --- docs/resources/file.md | 15 +++++++--- examples/README.md | 28 +------------------ .../resources/epilot-file_file/resource.tf | 15 +++++++--- .../epilot-file_upload_file/provider.tf | 2 +- .../epilot-file_upload_file/resource.tf | 2 -- 5 files changed, 24 insertions(+), 38 deletions(-) diff --git a/docs/resources/file.md b/docs/resources/file.md index f1d9f4d..f9986f4 100644 --- a/docs/resources/file.md +++ b/docs/resources/file.md @@ -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 = [ + "...", + ] } ``` diff --git a/examples/README.md b/examples/README.md index 851f933..f87f5c1 100644 --- a/examples/README.md +++ b/examples/README.md @@ -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 \ No newline at end of file diff --git a/examples/resources/epilot-file_file/resource.tf b/examples/resources/epilot-file_file/resource.tf index 50cd70b..62731ea 100644 --- a/examples/resources/epilot-file_file/resource.tf +++ b/examples/resources/epilot-file_file/resource.tf @@ -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 = [ + "...", + ] } \ No newline at end of file diff --git a/examples/resources/epilot-file_upload_file/provider.tf b/examples/resources/epilot-file_upload_file/provider.tf index b89bb24..96689ec 100644 --- a/examples/resources/epilot-file_upload_file/provider.tf +++ b/examples/resources/epilot-file_upload_file/provider.tf @@ -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" diff --git a/examples/resources/epilot-file_upload_file/resource.tf b/examples/resources/epilot-file_upload_file/resource.tf index 18b4731..0641580 100644 --- a/examples/resources/epilot-file_upload_file/resource.tf +++ b/examples/resources/epilot-file_upload_file/resource.tf @@ -23,5 +23,3 @@ resource "epilot-file_file" "my_file" { key = epilot-file_upload_file.my_uploadfile.s3ref.key entity_id = "" } - -