From 05ae26bfbd0e502ddff5532d08f47b6dd6e2c42d Mon Sep 17 00:00:00 2001 From: Ilia Medvedev Date: Tue, 10 Dec 2024 14:00:41 +0200 Subject: [PATCH] docs --- docs/resources/context.md | 77 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) diff --git a/docs/resources/context.md b/docs/resources/context.md index 3a5a6cc..e51660e 100644 --- a/docs/resources/context.md +++ b/docs/resources/context.md @@ -88,6 +88,7 @@ YAML ```hcl resource "codefresh_context" "test-secret-yaml" { name = "my-shared-secret-yaml" + decrypt_spec = false spec { # NOTE: The `-` from secret-yaml is stripped because the character is not allowed in Field name # File passed MUST be a valid YAML @@ -96,6 +97,82 @@ resource "codefresh_context" "test-secret-yaml" { } ``` +#### AWS S3 storage context + +```hcl +resource "codefresh_context" "test-s3" { + name = "my-s3-context" + + decrypt_spec = false + + spec { + storages3 { + data { + auth { + type = "basic" + json_config = {accessKeyId = "key", secretAccessKey = "secret"} + } + } + } + } +} +``` + +#### Azure file storage context + +```hcl +resource "codefresh_context" "test-azure" { + name = "my-azure-file-context" + + decrypt_spec = false + + spec { + storageazuref { + data { + auth { + type = "basic" + account_name = "account" + account_key = "key" + } + } + } + } +} +``` + +#### Google cloud storage context + +```hcl +resource "codefresh_context" "test-google-cloud-storage" { + name = "my-gcs-context" + + spec { + storagegc { + data { + auth { + type = "basic" + json_config = jsondecode(< ## Schema