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
@@ -29,6 +42,10 @@ The following arguments are supported:
29
42
-`protected` - (Optional) True if secret protection is enabled on the secret. A protected secret cannot be deleted, terraform will fail to destroy unless this is set to false.
30
43
-`description` - (Optional) Description of the secret (e.g. `my-new-description`).
31
44
-`tags` - (Optional) Tags of the secret (e.g. `["tag", "secret"]`).
45
+
-`ephemeral_policy` - (Optional) Ephemeral policy of the secret. Policy that defines whether/when a secret's versions expire. By default, the policy is applied to all the secret's versions.
46
+
-`ttl` - (Optional) Time frame, from one second and up to one year, during which the secret's versions are valid. Has to be specified in [Go Duration format](https://pkg.go.dev/time#ParseDuration) (ex: "30m", "24h").
47
+
-`expires_once_accessed` - (Optional) True if the secret version expires after a single user access.
48
+
-`action` - (Required) Action to perform when the version of a secret expires. Available values can be found in [SDK constants](https://pkg.go.dev/github.com/scaleway/scaleway-sdk-go@master/api/secret/v1beta1#pkg-constants).
32
49
-`region` - (Defaults to [provider](../index.md#region)`region`) The [region](../guides/regions_and_zones.md#regions)
33
50
in which the resource exists.
34
51
-`project_id` - (Optional) The project ID containing is the secret.
Description: "True if secret protection is enabled on a given secret. A protected secret cannot be deleted.",
82
84
},
85
+
"ephemeral_policy": {
86
+
Type: schema.TypeList,
87
+
Optional: true,
88
+
Elem: &schema.Resource{
89
+
Schema: map[string]*schema.Schema{
90
+
"ttl": {
91
+
Optional: true,
92
+
Type: schema.TypeString,
93
+
DiffSuppressFunc: dsf.Duration,
94
+
ValidateFunc: verify.IsDuration(),
95
+
Description: "Time frame, from one second and up to one year, during which the secret's versions are valid. Has to be specified in Go Duration format",
96
+
},
97
+
"expires_once_accessed": {
98
+
Type: schema.TypeBool,
99
+
Optional: true,
100
+
Description: "True if the secret version expires after a single user access.",
0 commit comments