https://pulumi.com logo
Title
b

broad-hairdresser-1495

04/01/2021, 12:02 PM
Hi, Why do Pulumi responds with error when importing AWS Volume:
pulumi import aws:ebs/volume:Volume id vol-049df61146c4d7901
Previewing import (aws_import):
     Type                 Name                   Plan       Info
     pulumi:pulumi:Stack  aws_import-aws_import             1 error
 =   └─ aws:ebs:Volume    id                     import     3 errors

Diagnostics:
  pulumi:pulumi:Stack (aws_import-aws_import):
    error: preview failed

  aws:ebs:Volume (id):
    error: aws:ebs/volume:Volume resource 'id' has a problem: AtLeastOne: "size": one of `size,snapshot_id` must be specified. Examine values at 'Volume.Size'.
    error: aws:ebs/volume:Volume resource 'id' has a problem: AtLeastOne: "snapshot_id": one of `size,snapshot_id` must be specified. Examine values at 'Volume.SnapshotId'.
    error: Preview failed: one or more inputs failed to validate
is there another way of importing ebs volumes and manage them? used this guide: https://www.pulumi.com/docs/reference/pkg/aws/ebs/volume/#import
b

brave-planet-10645

04/01/2021, 12:35 PM
That looks like a bug. Can you raise it as an issue in this repo please? https://github.com/pulumi/pulumi-aws
b

broad-hairdresser-1495

04/01/2021, 1:02 PM