Skip to content

Commit

Permalink
Merge branch 'support-performance-insights-in-aurora-mysql' of https:…
Browse files Browse the repository at this point in the history
…//github.com/ysmazda/terraform-provider-aws into ysmazda-support-performance-insights-in-aurora-mysql
  • Loading branch information
bflad committed Aug 12, 2019
2 parents aeb6f4f + 37d99ac commit cc059c5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 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
2 changes: 1 addition & 1 deletion aws/resource_aws_rds_cluster_instance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@ resource "aws_rds_cluster_instance" "cluster_instances" {
resource "aws_db_parameter_group" "bar" {
name = "tfcluster-test-group-%d"
family = "aurora-postgresql9.6"
family = "aurora-postgresql10"
parameter {
name = "authentication_timeout"
Expand Down

0 comments on commit cc059c5

Please sign in to comment.