diff --git a/internal/service/rds/instance.go b/internal/service/rds/instance.go index 859b397c4bd..da375537a91 100644 --- a/internal/service/rds/instance.go +++ b/internal/service/rds/instance.go @@ -1690,10 +1690,6 @@ func resourceInstanceRead(ctx context.Context, d *schema.ResourceData, meta inte d.Set("replicas", aws.StringValueSlice(v.ReadReplicaDBInstanceIdentifiers)) d.Set("replicate_source_db", v.ReadReplicaSourceDBInstanceIdentifier) d.Set("resource_id", v.DbiResourceId) - var securityGroupNames []string - for _, v := range v.DBSecurityGroups { - securityGroupNames = append(securityGroupNames, aws.StringValue(v.DBSecurityGroupName)) - } d.Set("status", v.DBInstanceStatus) d.Set("storage_encrypted", v.StorageEncrypted) d.Set("storage_throughput", v.StorageThroughput) diff --git a/internal/service/rds/instance_data_source.go b/internal/service/rds/instance_data_source.go index e601bb5de59..66c07689db1 100644 --- a/internal/service/rds/instance_data_source.go +++ b/internal/service/rds/instance_data_source.go @@ -232,10 +232,6 @@ func dataSourceInstanceRead(ctx context.Context, d *schema.ResourceData, meta in parameterGroupNames = append(parameterGroupNames, aws.StringValue(v.DBParameterGroupName)) } d.Set("db_parameter_groups", parameterGroupNames) - var securityGroupNames []string - for _, v := range v.DBSecurityGroups { - securityGroupNames = append(securityGroupNames, aws.StringValue(v.DBSecurityGroupName)) - } if v.DBSubnetGroup != nil { d.Set("db_subnet_group", v.DBSubnetGroup.DBSubnetGroupName) } else {