Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion docs/resources/secret_version.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ resource "scaleway_secret_version" "v1" {
The following arguments are supported:

- `secret_id` - (Required) The ID of the secret associated with the version.
- `data` - (Required) The data payload of the secret version. Must not exceed 64KiB in size (e.g. `my-secret-version-payload`). Find out more on the [data section](/#data-information).
- `data` - (Optional) The data payload of the secret version. Must not exceed 64KiB in size (e.g. `my-secret-version-payload`). Only one of `data` or `data_wo` should be specified. Find out more on the [data section](/#data-information).
- `data_wo` - (Optional) The data payload of your secret version in [write-only](https://developer.hashicorp.com/terraform/language/manage-sensitive-data/write-only) mode. Must not exceed 64KiB in size (e.g. `my-secret-version-payload`). Only one of `data` or `data_wo` should be specified. `data_wo` will not be set in the Terraform state. To update the `data_wo`, you must also update the `data_wo_version`. Find out more on the [data section](/#data-information).
- `data_wo_version` - (Optional) The version of the [write-only](https://developer.hashicorp.com/terraform/language/manage-sensitive-data/write-only) data. To update the `data_wo`, you must also update the `data_wo_version`.
- `description` - (Optional) Description of the secret version (e.g. `my-new-description`).
- `region` - (Defaults to the region specified in the [provider configuration](../index.md#region)). The [region](../guides/regions_and_zones.md#regions) where the resource exists.

Expand Down
8 changes: 5 additions & 3 deletions internal/services/secret/secret_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@ func TestAccSecret_Basic(t *testing.T) {
tt := acctest.NewTestTools(t)
defer tt.Cleanup()

secretName := "secretNameBasic"
updatedName := "secretNameBasicUpdated"
secretDescription := "secret description"
const (
secretDescription = "secret description"
secretName = "secretNameBasic"
updatedName = "secretNameBasicUpdated"
)
resource.ParallelTest(t, resource.TestCase{
ProtoV6ProviderFactories: tt.ProviderFactories,
CheckDestroy: testAccCheckSecretDestroy(tt),
Expand Down
Loading
Loading