Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix in resource aws_msk_cluster enhanced_monitoring PER_TOPIC_PER_PARTITION #16914

Merged
merged 2 commits into from
Jan 5, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 9 additions & 17 deletions aws/resource_aws_msk_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,15 +190,11 @@ func resourceAwsMskCluster() *schema.Resource {
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"client_broker": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
Default: kafka.ClientBrokerTls,
ValidateFunc: validation.StringInSlice([]string{
kafka.ClientBrokerPlaintext,
kafka.ClientBrokerTlsPlaintext,
kafka.ClientBrokerTls,
}, false),
Type: schema.TypeString,
Optional: true,
ForceNew: true,
Default: kafka.ClientBrokerTls,
ValidateFunc: validation.StringInSlice(kafka.ClientBroker_Values(), false),
},
"in_cluster": {
Type: schema.TypeBool,
Expand All @@ -213,14 +209,10 @@ func resourceAwsMskCluster() *schema.Resource {
},
},
"enhanced_monitoring": {
Type: schema.TypeString,
Optional: true,
Default: kafka.EnhancedMonitoringDefault,
ValidateFunc: validation.StringInSlice([]string{
kafka.EnhancedMonitoringDefault,
kafka.EnhancedMonitoringPerBroker,
kafka.EnhancedMonitoringPerTopicPerBroker,
}, true),
Type: schema.TypeString,
Optional: true,
Default: kafka.EnhancedMonitoringDefault,
ValidateFunc: validation.StringInSlice(kafka.EnhancedMonitoring_Values(), true),
},
"kafka_version": {
Type: schema.TypeString,
Expand Down