Skip to content

Commit 8e6769a

Browse files
authored
docs: Adjust write-only wording to favor argument over attribute (#660)
1 parent 1a3dc28 commit 8e6769a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

docs/ephemeral-resources/password.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@
33
page_title: "random_password Ephemeral Resource - terraform-provider-random"
44
subcategory: ""
55
description: |-
6-
-> If the managed resource doesn't have a write-only attribute available for the password (first introduced in Terraform 1.11), then the password can only be created with the managed resource variant of random_password https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/password.
6+
-> If the managed resource doesn't have a write-only argument available for the password (first introduced in Terraform 1.11), then the password can only be created with the managed resource variant of random_password https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/password.
77
Generates an ephemeral password string using a cryptographic random number generator.
8-
The primary use-case for generating an ephemeral random password is to be used in combination with a write-only attribute in a managed resource, which will avoid Terraform storing the password string in the plan or state file.
8+
The primary use-case for generating an ephemeral random password is to be used in combination with a write-only argument in a managed resource, which will avoid Terraform storing the password string in the plan or state file.
99
---
1010

1111
# random_password (Ephemeral Resource)
1212

13-
-> If the managed resource doesn't have a write-only attribute available for the password (first introduced in Terraform 1.11), then the password can only be created with the managed resource variant of [`random_password`](https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/password).
13+
-> If the managed resource doesn't have a write-only argument available for the password (first introduced in Terraform 1.11), then the password can only be created with the managed resource variant of [`random_password`](https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/password).
1414

1515
Generates an ephemeral password string using a cryptographic random number generator.
1616

17-
The primary use-case for generating an ephemeral random password is to be used in combination with a write-only attribute in a managed resource, which will avoid Terraform storing the password string in the plan or state file.
17+
The primary use-case for generating an ephemeral random password is to be used in combination with a write-only argument in a managed resource, which will avoid Terraform storing the password string in the plan or state file.
1818

1919
## Example Usage
2020

internal/provider/ephemeral_password.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@ func (e *passwordEphemeralResource) Metadata(ctx context.Context, req ephemeral.
4848

4949
func (e *passwordEphemeralResource) Schema(ctx context.Context, req ephemeral.SchemaRequest, resp *ephemeral.SchemaResponse) {
5050
resp.Schema = schema.Schema{
51-
Description: "-> If the managed resource doesn't have a write-only attribute available for the password (first introduced in Terraform 1.11), then the " +
51+
Description: "-> If the managed resource doesn't have a write-only argument available for the password (first introduced in Terraform 1.11), then the " +
5252
"password can only be created with the managed resource variant of [`random_password`](https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/password).\n" +
5353
"\n" +
5454
"Generates an ephemeral password string using a cryptographic random number generator.\n" +
5555
"\n" +
56-
"The primary use-case for generating an ephemeral random password is to be used in combination with a write-only attribute " +
56+
"The primary use-case for generating an ephemeral random password is to be used in combination with a write-only argument " +
5757
"in a managed resource, which will avoid Terraform storing the password string in the plan or state file.",
5858
Attributes: map[string]schema.Attribute{
5959
"length": schema.Int64Attribute{

0 commit comments

Comments
 (0)