Skip to content

Commit f2aac72

Browse files
Ivan De Marinobflad
andauthored
Preparing release 3.1.1 (#214)
* Using new `-upload-name` when publishing with `hc-releases` * Updating dependencies * Regenerated doc * Updating CHANGELOG for 3.1.1 * Update CHANGELOG.md Co-authored-by: Brian Flad <[email protected]> Co-authored-by: Brian Flad <[email protected]>
1 parent a38ffb1 commit f2aac72

File tree

11 files changed

+71
-70
lines changed

11 files changed

+71
-70
lines changed

.goreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ publishers:
4545
# Terraform CLI 0.10 - 0.11 perform discovery via HTTP headers on releases.hashicorp.com
4646
# For providers which have existed since those CLI versions, exclude
4747
# discovery by setting the protocol version headers to 5.
48-
cmd: hc-releases upload-file {{ abs .ArtifactPath }} -header=x-terraform-protocol-version=5 -header=x-terraform-protocol-versions=5.0
48+
cmd: hc-releases upload-file {{ abs .ArtifactPath }} -upload-name={{ .ArtifactName }} -header=x-terraform-protocol-version=5 -header=x-terraform-protocol-versions=5.0
4949
env:
5050
- AWS_ACCESS_KEY_ID={{ .Env.AWS_ACCESS_KEY_ID }}
5151
- AWS_SECRET_ACCESS_KEY={{ .Env.AWS_SECRET_ACCESS_KEY }}

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
## 3.1.1 (March 16, 2022)
2+
3+
NOTES:
4+
5+
* Updated [terraform-plugin-docs](https://github.com/hashicorp/terraform-plugin-docs) to `v0.7.0`:
6+
this improves generated documentation, with attributes now correctly formatted as `code`
7+
and provided with anchors.
8+
* Functionally identical to the previous 3.1.0 release.
9+
110
## 3.1.0 (February 19, 2021)
211

312
Binary releases of this provider now include the darwin-arm64 platform. This version contains no further changes.

docs/resources/id.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,20 +63,20 @@ resource "aws_instance" "server" {
6363

6464
### Required
6565

66-
- **byte_length** (Number) The number of random bytes to produce. The minimum value is 1, which produces eight bits of randomness.
66+
- `byte_length` (Number) The number of random bytes to produce. The minimum value is 1, which produces eight bits of randomness.
6767

6868
### Optional
6969

70-
- **keepers** (Map of String) Arbitrary map of values that, when changed, will trigger recreation of resource. See [the main provider documentation](../index.html) for more information.
71-
- **prefix** (String) Arbitrary string to prefix the output value with. This string is supplied as-is, meaning it is not guaranteed to be URL-safe or base64 encoded.
70+
- `keepers` (Map of String) Arbitrary map of values that, when changed, will trigger recreation of resource. See [the main provider documentation](../index.html) for more information.
71+
- `prefix` (String) Arbitrary string to prefix the output value with. This string is supplied as-is, meaning it is not guaranteed to be URL-safe or base64 encoded.
7272

7373
### Read-Only
7474

75-
- **b64_std** (String) The generated id presented in base64 without additional transformations.
76-
- **b64_url** (String) The generated id presented in base64, using the URL-friendly character set: case-sensitive letters, digits and the characters `_` and `-`.
77-
- **dec** (String) The generated id presented in non-padded decimal digits.
78-
- **hex** (String) The generated id presented in padded hexadecimal digits. This result will always be twice as long as the requested byte length.
79-
- **id** (String) The generated id presented in base64 without additional transformations or prefix.
75+
- `b64_std` (String) The generated id presented in base64 without additional transformations.
76+
- `b64_url` (String) The generated id presented in base64, using the URL-friendly character set: case-sensitive letters, digits and the characters `_` and `-`.
77+
- `dec` (String) The generated id presented in non-padded decimal digits.
78+
- `hex` (String) The generated id presented in padded hexadecimal digits. This result will always be twice as long as the requested byte length.
79+
- `id` (String) The generated id presented in base64 without additional transformations or prefix.
8080

8181
## Import
8282

docs/resources/integer.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,18 +45,18 @@ resource "aws_alb_listener_rule" "main" {
4545

4646
### Required
4747

48-
- **max** (Number) The maximum inclusive value of the range.
49-
- **min** (Number) The minimum inclusive value of the range.
48+
- `max` (Number) The maximum inclusive value of the range.
49+
- `min` (Number) The minimum inclusive value of the range.
5050

5151
### Optional
5252

53-
- **keepers** (Map of String) Arbitrary map of values that, when changed, will trigger recreation of resource. See [the main provider documentation](../index.html) for more information.
54-
- **seed** (String) A custom seed to always produce the same value.
53+
- `keepers` (Map of String) Arbitrary map of values that, when changed, will trigger recreation of resource. See [the main provider documentation](../index.html) for more information.
54+
- `seed` (String) A custom seed to always produce the same value.
5555

5656
### Read-Only
5757

58-
- **id** (String) The string representation of the integer result.
59-
- **result** (Number) The random integer result.
58+
- `id` (String) The string representation of the integer result.
59+
- `result` (Number) The random integer result.
6060

6161
## Import
6262

docs/resources/password.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -36,25 +36,25 @@ resource "aws_db_instance" "example" {
3636

3737
### Required
3838

39-
- **length** (Number) The length of the string desired.
39+
- `length` (Number) The length of the string desired.
4040

4141
### Optional
4242

43-
- **keepers** (Map of String) Arbitrary map of values that, when changed, will trigger recreation of resource. See [the main provider documentation](../index.html) for more information.
44-
- **lower** (Boolean) Include lowercase alphabet characters in the result. Default value is `true`.
45-
- **min_lower** (Number) Minimum number of lowercase alphabet characters in the result. Default value is `0`.
46-
- **min_numeric** (Number) Minimum number of numeric characters in the result. Default value is `0`.
47-
- **min_special** (Number) Minimum number of special characters in the result. Default value is `0`.
48-
- **min_upper** (Number) Minimum number of uppercase alphabet characters in the result. Default value is `0`.
49-
- **number** (Boolean) Include numeric characters in the result. Default value is `true`.
50-
- **override_special** (String) Supply your own list of special characters to use for string generation. This overrides the default character list in the special argument. The `special` argument must still be set to true for any overwritten characters to be used in generation.
51-
- **special** (Boolean) Include special characters in the result. These are `!@#$%&*()-_=+[]{}<>:?`. Default value is `true`.
52-
- **upper** (Boolean) Include uppercase alphabet characters in the result. Default value is `true`.
43+
- `keepers` (Map of String) Arbitrary map of values that, when changed, will trigger recreation of resource. See [the main provider documentation](../index.html) for more information.
44+
- `lower` (Boolean) Include lowercase alphabet characters in the result. Default value is `true`.
45+
- `min_lower` (Number) Minimum number of lowercase alphabet characters in the result. Default value is `0`.
46+
- `min_numeric` (Number) Minimum number of numeric characters in the result. Default value is `0`.
47+
- `min_special` (Number) Minimum number of special characters in the result. Default value is `0`.
48+
- `min_upper` (Number) Minimum number of uppercase alphabet characters in the result. Default value is `0`.
49+
- `number` (Boolean) Include numeric characters in the result. Default value is `true`.
50+
- `override_special` (String) Supply your own list of special characters to use for string generation. This overrides the default character list in the special argument. The `special` argument must still be set to true for any overwritten characters to be used in generation.
51+
- `special` (Boolean) Include special characters in the result. These are `!@#$%&*()-_=+[]{}<>:?`. Default value is `true`.
52+
- `upper` (Boolean) Include uppercase alphabet characters in the result. Default value is `true`.
5353

5454
### Read-Only
5555

56-
- **id** (String) A static value used internally by Terraform, this should not be referenced in configurations.
57-
- **result** (String, Sensitive) The generated random string.
56+
- `id` (String) A static value used internally by Terraform, this should not be referenced in configurations.
57+
- `result` (String, Sensitive) The generated random string.
5858

5959
## Import
6060

docs/resources/pet.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ resource "aws_instance" "server" {
4545

4646
### Optional
4747

48-
- **keepers** (Map of String) Arbitrary map of values that, when changed, will trigger recreation of resource. See [the main provider documentation](../index.html) for more information.
49-
- **length** (Number) The length (in words) of the pet name.
50-
- **prefix** (String) A string to prefix the name with.
51-
- **separator** (String) The character to separate words in the pet name.
48+
- `keepers` (Map of String) Arbitrary map of values that, when changed, will trigger recreation of resource. See [the main provider documentation](../index.html) for more information.
49+
- `length` (Number) The length (in words) of the pet name.
50+
- `prefix` (String) A string to prefix the name with.
51+
- `separator` (String) The character to separate words in the pet name.
5252

5353
### Read-Only
5454

55-
- **id** (String) The random pet name
55+
- `id` (String) The random pet name
5656

5757

docs/resources/shuffle.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,19 @@ resource "aws_elb" "example" {
3232

3333
### Required
3434

35-
- **input** (List of String) The list of strings to shuffle.
35+
- `input` (List of String) The list of strings to shuffle.
3636

3737
### Optional
3838

39-
- **keepers** (Map of String) Arbitrary map of values that, when changed, will trigger recreation of resource. See [the main provider documentation](../index.html) for more information.
40-
- **result_count** (Number) The number of results to return. Defaults to the number of items in the `input` list. If fewer items are requested, some elements will be excluded from the result. If more items are requested, items will be repeated in the result but not more frequently than the number of items in the input list.
41-
- **seed** (String) Arbitrary string with which to seed the random number generator, in order to produce less-volatile permutations of the list.
39+
- `keepers` (Map of String) Arbitrary map of values that, when changed, will trigger recreation of resource. See [the main provider documentation](../index.html) for more information.
40+
- `result_count` (Number) The number of results to return. Defaults to the number of items in the `input` list. If fewer items are requested, some elements will be excluded from the result. If more items are requested, items will be repeated in the result but not more frequently than the number of items in the input list.
41+
- `seed` (String) Arbitrary string with which to seed the random number generator, in order to produce less-volatile permutations of the list.
4242

4343
**Important:** Even with an identical seed, it is not guaranteed that the same permutation will be produced across different versions of Terraform. This argument causes the result to be *less volatile*, but not fixed for all time.
4444

4545
### Read-Only
4646

47-
- **id** (String) A static value used internally by Terraform, this should not be referenced in configurations.
48-
- **result** (List of String) Random permutation of the list of strings given in `input`.
47+
- `id` (String) A static value used internally by Terraform, this should not be referenced in configurations.
48+
- `result` (List of String) Random permutation of the list of strings given in `input`.
4949

5050

docs/resources/string.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -31,25 +31,25 @@ resource "random_string" "random" {
3131

3232
### Required
3333

34-
- **length** (Number) The length of the string desired.
34+
- `length` (Number) The length of the string desired.
3535

3636
### Optional
3737

38-
- **keepers** (Map of String) Arbitrary map of values that, when changed, will trigger recreation of resource. See [the main provider documentation](../index.html) for more information.
39-
- **lower** (Boolean) Include lowercase alphabet characters in the result. Default value is `true`.
40-
- **min_lower** (Number) Minimum number of lowercase alphabet characters in the result. Default value is `0`.
41-
- **min_numeric** (Number) Minimum number of numeric characters in the result. Default value is `0`.
42-
- **min_special** (Number) Minimum number of special characters in the result. Default value is `0`.
43-
- **min_upper** (Number) Minimum number of uppercase alphabet characters in the result. Default value is `0`.
44-
- **number** (Boolean) Include numeric characters in the result. Default value is `true`.
45-
- **override_special** (String) Supply your own list of special characters to use for string generation. This overrides the default character list in the special argument. The `special` argument must still be set to true for any overwritten characters to be used in generation.
46-
- **special** (Boolean) Include special characters in the result. These are `!@#$%&*()-_=+[]{}<>:?`. Default value is `true`.
47-
- **upper** (Boolean) Include uppercase alphabet characters in the result. Default value is `true`.
38+
- `keepers` (Map of String) Arbitrary map of values that, when changed, will trigger recreation of resource. See [the main provider documentation](../index.html) for more information.
39+
- `lower` (Boolean) Include lowercase alphabet characters in the result. Default value is `true`.
40+
- `min_lower` (Number) Minimum number of lowercase alphabet characters in the result. Default value is `0`.
41+
- `min_numeric` (Number) Minimum number of numeric characters in the result. Default value is `0`.
42+
- `min_special` (Number) Minimum number of special characters in the result. Default value is `0`.
43+
- `min_upper` (Number) Minimum number of uppercase alphabet characters in the result. Default value is `0`.
44+
- `number` (Boolean) Include numeric characters in the result. Default value is `true`.
45+
- `override_special` (String) Supply your own list of special characters to use for string generation. This overrides the default character list in the special argument. The `special` argument must still be set to true for any overwritten characters to be used in generation.
46+
- `special` (Boolean) Include special characters in the result. These are `!@#$%&*()-_=+[]{}<>:?`. Default value is `true`.
47+
- `upper` (Boolean) Include uppercase alphabet characters in the result. Default value is `true`.
4848

4949
### Read-Only
5050

51-
- **id** (String) The generated random string.
52-
- **result** (String) The generated random string.
51+
- `id` (String) The generated random string.
52+
- `result` (String) The generated random string.
5353

5454
## Import
5555

docs/resources/uuid.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ resource "azurerm_resource_group" "test" {
3232

3333
### Optional
3434

35-
- **keepers** (Map of String) Arbitrary map of values that, when changed, will trigger recreation of resource. See [the main provider documentation](../index.html) for more information.
35+
- `keepers` (Map of String) Arbitrary map of values that, when changed, will trigger recreation of resource. See [the main provider documentation](../index.html) for more information.
3636

3737
### Read-Only
3838

39-
- **id** (String) The generated uuid presented in string format.
40-
- **result** (String) The generated uuid presented in string format.
39+
- `id` (String) The generated uuid presented in string format.
40+
- `result` (String) The generated uuid presented in string format.
4141

4242
## Import
4343

go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
module github.com/terraform-providers/terraform-provider-random
22

3-
go 1.15
3+
go 1.16
44

55
require (
6-
github.com/dustinkirkland/golang-petname v0.0.0-20170105215008-242afa0b4f8a
6+
github.com/dustinkirkland/golang-petname v0.0.0-20191129215211-8e5a1ed0cff0
77
github.com/hashicorp/errwrap v1.1.0
88
github.com/hashicorp/go-uuid v1.0.2
9-
github.com/hashicorp/terraform-plugin-docs v0.6.0
9+
github.com/hashicorp/terraform-plugin-docs v0.7.0
1010
github.com/hashicorp/terraform-plugin-sdk/v2 v2.11.0
1111
)

0 commit comments

Comments
 (0)