Error while importing aws_backup_selection

Trying to do terraform import of “aws_backup_selection”

“terraform import aws_backup_selection.example plan-id|selection-id”

command taking pipe (“|”) symbol as a command separator and hence there is an error “command not found”.
Im trying to follow terraform document https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/backup_selection
Could you please help us to resolve this issue?

2 Likes

Trying to do terraform import of “aws_backup_selection”

“terraform import aws_backup_selection.example plan-id|selection-id”

command taking pipe (“|”) symbol as a command separator and hence there is an error “command not found”.
Could you please help us to resolve this issue?

Q.
Trying to do terraform import of “aws_backup_selection”
“terraform import aws_backup_selection.example plan-id|selection-id”

command taking pipe (“|”) symbol as a command separator and hence there is an error “command not found”.

A.
I could resolve this problem using single-quart ‘plan-id|selection-id’

$ terraform import aws_backup_selection.example ’plan-id|selection-id’