Skip to content

Commit

Permalink
Merge pull request #18588 from cartucciam/b_resource_aws_ssm_paramete…
Browse files Browse the repository at this point in the history
…r_validation_for_description_and_allowed_pattern

fix: r/ssm_parameter description and allowed_pattern validation
  • Loading branch information
anGie44 authored Apr 6, 2021
2 parents e06ee9e + aeca3c5 commit d150b41
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .changelog/18588.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
resource/aws_ssm_parameter: Allow `allowed_pattern` and `description` arguments to be empty strings
```
4 changes: 2 additions & 2 deletions aws/resource_aws_ssm_parameter.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func resourceAwsSsmParameter() *schema.Resource {
"description": {
Type: schema.TypeString,
Optional: true,
ValidateFunc: validation.StringLenBetween(1, 1024),
ValidateFunc: validation.StringLenBetween(0, 1024),
},
"tier": {
Type: schema.TypeString,
Expand Down Expand Up @@ -87,7 +87,7 @@ func resourceAwsSsmParameter() *schema.Resource {
"allowed_pattern": {
Type: schema.TypeString,
Optional: true,
ValidateFunc: validation.StringLenBetween(1, 1024),
ValidateFunc: validation.StringLenBetween(0, 1024),
},
"version": {
Type: schema.TypeInt,
Expand Down

0 comments on commit d150b41

Please sign in to comment.