Skip to content

Commit

Permalink
Support aurora-mysql engine type in performance insights
Browse files Browse the repository at this point in the history
Now that all the valid engine types support performance insights,
remove the code to check engine type.
  • Loading branch information
ysmazda committed Aug 5, 2019
1 parent b479b34 commit 37d99ac
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions aws/resource_aws_rds_cluster_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,14 +256,12 @@ func resourceAwsRDSClusterInstanceCreate(d *schema.ResourceData, meta interface{
createOpts.MonitoringRoleArn = aws.String(attr.(string))
}

if attr, _ := d.GetOk("engine"); attr == "aurora-postgresql" || attr == "aurora" {
if attr, ok := d.GetOk("performance_insights_enabled"); ok {
createOpts.EnablePerformanceInsights = aws.Bool(attr.(bool))
}
if attr, ok := d.GetOk("performance_insights_enabled"); ok {
createOpts.EnablePerformanceInsights = aws.Bool(attr.(bool))
}

if attr, ok := d.GetOk("performance_insights_kms_key_id"); ok {
createOpts.PerformanceInsightsKMSKeyId = aws.String(attr.(string))
}
if attr, ok := d.GetOk("performance_insights_kms_key_id"); ok {
createOpts.PerformanceInsightsKMSKeyId = aws.String(attr.(string))
}

if attr, ok := d.GetOk("preferred_backup_window"); ok {
Expand Down

0 comments on commit 37d99ac

Please sign in to comment.