Skip to content

Commit

Permalink
efs/mount_target: Remove empty validation
Browse files Browse the repository at this point in the history
  • Loading branch information
YakDriver committed Feb 4, 2022
1 parent 61c61be commit 4f69100
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .changelog/22954.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:breaking-change
resource/aws_efs_mount_target: `ip_address` can no longer be set to `""`; instead, remove or set to `null`
```
13 changes: 5 additions & 8 deletions internal/service/efs/mount_target.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,11 @@ func ResourceMountTarget() *schema.Resource {
},

"ip_address": {
Type: schema.TypeString,
Computed: true,
Optional: true,
ForceNew: true,
ValidateFunc: validation.Any(
validation.IsIPv4Address,
validation.StringIsEmpty,
),
Type: schema.TypeString,
Computed: true,
Optional: true,
ForceNew: true,
ValidateFunc: validation.IsIPv4Address,
},

"security_groups": {
Expand Down

0 comments on commit 4f69100

Please sign in to comment.