Skip to content

Commit

Permalink
Allow empty string as valid setting for launch_type. Fixes #16078
Browse files Browse the repository at this point in the history
  • Loading branch information
ianneub committed May 27, 2021
1 parent efa8b7c commit 7e88347
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws/resource_aws_cloudwatch_event_target.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func resourceAwsCloudWatchEventTarget() *schema.Resource {
Type: schema.TypeString,
Optional: true,
Default: events.LaunchTypeEc2,
ValidateFunc: validation.StringInSlice(events.LaunchType_Values(), false),
ValidateFunc: validation.StringInSlice(append(events.LaunchType_Values(), []string{""}...), false),
},
"network_configuration": {
Type: schema.TypeList,
Expand Down

0 comments on commit 7e88347

Please sign in to comment.