diff --git a/aws/resource_aws_backup_selection.go b/aws/resource_aws_backup_selection.go index 756ca908646..bb1bbe71c69 100644 --- a/aws/resource_aws_backup_selection.go +++ b/aws/resource_aws_backup_selection.go @@ -141,7 +141,9 @@ func resourceAwsBackupSelectionRead(d *schema.ResourceData, meta interface{}) er } } if resp.BackupSelection.Resources != nil { - d.Set("resources", resp.BackupSelection.Resources) + if err := d.Set("resources", aws.StringValueSlice(resp.BackupSelection.Resources)); err != nil { + return fmt.Errorf("error setting resources: %s", err) + } } return nil diff --git a/aws/resource_aws_backup_selection_test.go b/aws/resource_aws_backup_selection_test.go index dfddcd196ed..27d30f61eef 100644 --- a/aws/resource_aws_backup_selection_test.go +++ b/aws/resource_aws_backup_selection_test.go @@ -235,8 +235,8 @@ resource "aws_backup_selection" "test" { } resources = [ - "arn:aws:ec2:us-east-1:${data.aws_caller_identity.current.account_id}:volume/", - "arn:aws:elasticfilesystem:us-east-1:${data.aws_caller_identity.current.account_id}:file-system/" + "arn:aws:elasticfilesystem:us-east-1:${data.aws_caller_identity.current.account_id}:file-system/", + "arn:aws:ec2:us-east-1:${data.aws_caller_identity.current.account_id}:volume/" ] } `, rInt)