1. Packages
  2. Packages
  3. AWS
  4. API Docs
  5. ebs
  6. VolumeCopy
Viewing docs for AWS v7.28.0
published on Thursday, Apr 30, 2026 by Pulumi
aws logo
Viewing docs for AWS v7.28.0
published on Thursday, Apr 30, 2026 by Pulumi

    Creates a copy of an existing Amazon EBS volume.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const source = new aws.ebs.Volume("source", {
        availabilityZone: "us-west-2a",
        size: 8,
    });
    const example = new aws.ebs.VolumeCopy("example", {
        sourceVolumeId: source.id,
        volumeType: "gp3",
        size: 20,
        iops: 3000,
        throughput: 125,
        tags: {
            Name: "example-copy",
        },
    });
    
    import pulumi
    import pulumi_aws as aws
    
    source = aws.ebs.Volume("source",
        availability_zone="us-west-2a",
        size=8)
    example = aws.ebs.VolumeCopy("example",
        source_volume_id=source.id,
        volume_type="gp3",
        size=20,
        iops=3000,
        throughput=125,
        tags={
            "Name": "example-copy",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/ebs"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		source, err := ebs.NewVolume(ctx, "source", &ebs.VolumeArgs{
    			AvailabilityZone: pulumi.String("us-west-2a"),
    			Size:             pulumi.Int(8),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = ebs.NewVolumeCopy(ctx, "example", &ebs.VolumeCopyArgs{
    			SourceVolumeId: source.ID(),
    			VolumeType:     pulumi.String("gp3"),
    			Size:           pulumi.Int(20),
    			Iops:           pulumi.Int(3000),
    			Throughput:     pulumi.Int(125),
    			Tags: pulumi.StringMap{
    				"Name": pulumi.String("example-copy"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var source = new Aws.Ebs.Volume("source", new()
        {
            AvailabilityZone = "us-west-2a",
            Size = 8,
        });
    
        var example = new Aws.Ebs.VolumeCopy("example", new()
        {
            SourceVolumeId = source.Id,
            VolumeType = "gp3",
            Size = 20,
            Iops = 3000,
            Throughput = 125,
            Tags = 
            {
                { "Name", "example-copy" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.ebs.Volume;
    import com.pulumi.aws.ebs.VolumeArgs;
    import com.pulumi.aws.ebs.VolumeCopy;
    import com.pulumi.aws.ebs.VolumeCopyArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var source = new Volume("source", VolumeArgs.builder()
                .availabilityZone("us-west-2a")
                .size(8)
                .build());
    
            var example = new VolumeCopy("example", VolumeCopyArgs.builder()
                .sourceVolumeId(source.id())
                .volumeType("gp3")
                .size(20)
                .iops(3000)
                .throughput(125)
                .tags(Map.of("Name", "example-copy"))
                .build());
    
        }
    }
    
    resources:
      source:
        type: aws:ebs:Volume
        properties:
          availabilityZone: us-west-2a
          size: 8
      example:
        type: aws:ebs:VolumeCopy
        properties:
          sourceVolumeId: ${source.id}
          volumeType: gp3
          size: 20
          iops: 3000
          throughput: 125
          tags:
            Name: example-copy
    
    Example coming soon!
    

    Create VolumeCopy Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new VolumeCopy(name: string, args: VolumeCopyArgs, opts?: CustomResourceOptions);
    @overload
    def VolumeCopy(resource_name: str,
                   args: VolumeCopyArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def VolumeCopy(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   source_volume_id: Optional[str] = None,
                   iops: Optional[int] = None,
                   region: Optional[str] = None,
                   size: Optional[int] = None,
                   tags: Optional[Mapping[str, str]] = None,
                   throughput: Optional[int] = None,
                   timeouts: Optional[VolumeCopyTimeoutsArgs] = None,
                   volume_type: Optional[str] = None)
    func NewVolumeCopy(ctx *Context, name string, args VolumeCopyArgs, opts ...ResourceOption) (*VolumeCopy, error)
    public VolumeCopy(string name, VolumeCopyArgs args, CustomResourceOptions? opts = null)
    public VolumeCopy(String name, VolumeCopyArgs args)
    public VolumeCopy(String name, VolumeCopyArgs args, CustomResourceOptions options)
    
    type: aws:ebs:VolumeCopy
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "aws_ebs_volumecopy" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args VolumeCopyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args VolumeCopyArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args VolumeCopyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VolumeCopyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VolumeCopyArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var volumeCopyResource = new Aws.Ebs.VolumeCopy("volumeCopyResource", new()
    {
        SourceVolumeId = "string",
        Iops = 0,
        Region = "string",
        Size = 0,
        Tags = 
        {
            { "string", "string" },
        },
        Throughput = 0,
        Timeouts = new Aws.Ebs.Inputs.VolumeCopyTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
        VolumeType = "string",
    });
    
    example, err := ebs.NewVolumeCopy(ctx, "volumeCopyResource", &ebs.VolumeCopyArgs{
    	SourceVolumeId: pulumi.String("string"),
    	Iops:           pulumi.Int(0),
    	Region:         pulumi.String("string"),
    	Size:           pulumi.Int(0),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Throughput: pulumi.Int(0),
    	Timeouts: &ebs.VolumeCopyTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    	VolumeType: pulumi.String("string"),
    })
    
    resource "aws_ebs_volumecopy" "volumeCopyResource" {
      source_volume_id = "string"
      iops             = 0
      region           = "string"
      size             = 0
      tags = {
        "string" = "string"
      }
      throughput = 0
      timeouts = {
        create = "string"
        delete = "string"
        update = "string"
      }
      volume_type = "string"
    }
    
    var volumeCopyResource = new VolumeCopy("volumeCopyResource", VolumeCopyArgs.builder()
        .sourceVolumeId("string")
        .iops(0)
        .region("string")
        .size(0)
        .tags(Map.of("string", "string"))
        .throughput(0)
        .timeouts(VolumeCopyTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .volumeType("string")
        .build());
    
    volume_copy_resource = aws.ebs.VolumeCopy("volumeCopyResource",
        source_volume_id="string",
        iops=0,
        region="string",
        size=0,
        tags={
            "string": "string",
        },
        throughput=0,
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        },
        volume_type="string")
    
    const volumeCopyResource = new aws.ebs.VolumeCopy("volumeCopyResource", {
        sourceVolumeId: "string",
        iops: 0,
        region: "string",
        size: 0,
        tags: {
            string: "string",
        },
        throughput: 0,
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
        volumeType: "string",
    });
    
    type: aws:ebs:VolumeCopy
    properties:
        iops: 0
        region: string
        size: 0
        sourceVolumeId: string
        tags:
            string: string
        throughput: 0
        timeouts:
            create: string
            delete: string
            update: string
        volumeType: string
    

    VolumeCopy Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The VolumeCopy resource accepts the following input properties:

    SourceVolumeId string
    ID of the source EBS volume to copy. Changing this value forces replacement of the resource.
    Iops int
    Provisioned IOPS for the copied volume. Use only with volume types that support provisioned IOPS, such as gp3.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration. This must match the Region of the source EBS volume referenced by sourceVolumeId.
    Size int
    Size of the copied volume, in GiB.
    Tags Dictionary<string, string>
    A map of tags to assign to the copied volume. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    Throughput int
    Throughput for the copied volume, in MiB/s. Valid only when volumeType is gp3.
    Timeouts VolumeCopyTimeouts
    VolumeType string

    Type of the copied EBS volume. Valid values include gp2, gp3, io1, io2, sc1, st1, and standard.

    NOTE: When changing the size, iops or type of a volume, there are considerations to be aware of.

    SourceVolumeId string
    ID of the source EBS volume to copy. Changing this value forces replacement of the resource.
    Iops int
    Provisioned IOPS for the copied volume. Use only with volume types that support provisioned IOPS, such as gp3.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration. This must match the Region of the source EBS volume referenced by sourceVolumeId.
    Size int
    Size of the copied volume, in GiB.
    Tags map[string]string
    A map of tags to assign to the copied volume. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    Throughput int
    Throughput for the copied volume, in MiB/s. Valid only when volumeType is gp3.
    Timeouts VolumeCopyTimeoutsArgs
    VolumeType string

    Type of the copied EBS volume. Valid values include gp2, gp3, io1, io2, sc1, st1, and standard.

    NOTE: When changing the size, iops or type of a volume, there are considerations to be aware of.

    source_volume_id string
    ID of the source EBS volume to copy. Changing this value forces replacement of the resource.
    iops number
    Provisioned IOPS for the copied volume. Use only with volume types that support provisioned IOPS, such as gp3.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration. This must match the Region of the source EBS volume referenced by sourceVolumeId.
    size number
    Size of the copied volume, in GiB.
    tags map(string)
    A map of tags to assign to the copied volume. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    throughput number
    Throughput for the copied volume, in MiB/s. Valid only when volumeType is gp3.
    timeouts object
    volume_type string

    Type of the copied EBS volume. Valid values include gp2, gp3, io1, io2, sc1, st1, and standard.

    NOTE: When changing the size, iops or type of a volume, there are considerations to be aware of.

    sourceVolumeId String
    ID of the source EBS volume to copy. Changing this value forces replacement of the resource.
    iops Integer
    Provisioned IOPS for the copied volume. Use only with volume types that support provisioned IOPS, such as gp3.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration. This must match the Region of the source EBS volume referenced by sourceVolumeId.
    size Integer
    Size of the copied volume, in GiB.
    tags Map<String,String>
    A map of tags to assign to the copied volume. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    throughput Integer
    Throughput for the copied volume, in MiB/s. Valid only when volumeType is gp3.
    timeouts VolumeCopyTimeouts
    volumeType String

    Type of the copied EBS volume. Valid values include gp2, gp3, io1, io2, sc1, st1, and standard.

    NOTE: When changing the size, iops or type of a volume, there are considerations to be aware of.

    sourceVolumeId string
    ID of the source EBS volume to copy. Changing this value forces replacement of the resource.
    iops number
    Provisioned IOPS for the copied volume. Use only with volume types that support provisioned IOPS, such as gp3.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration. This must match the Region of the source EBS volume referenced by sourceVolumeId.
    size number
    Size of the copied volume, in GiB.
    tags {[key: string]: string}
    A map of tags to assign to the copied volume. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    throughput number
    Throughput for the copied volume, in MiB/s. Valid only when volumeType is gp3.
    timeouts VolumeCopyTimeouts
    volumeType string

    Type of the copied EBS volume. Valid values include gp2, gp3, io1, io2, sc1, st1, and standard.

    NOTE: When changing the size, iops or type of a volume, there are considerations to be aware of.

    source_volume_id str
    ID of the source EBS volume to copy. Changing this value forces replacement of the resource.
    iops int
    Provisioned IOPS for the copied volume. Use only with volume types that support provisioned IOPS, such as gp3.
    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration. This must match the Region of the source EBS volume referenced by sourceVolumeId.
    size int
    Size of the copied volume, in GiB.
    tags Mapping[str, str]
    A map of tags to assign to the copied volume. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    throughput int
    Throughput for the copied volume, in MiB/s. Valid only when volumeType is gp3.
    timeouts VolumeCopyTimeoutsArgs
    volume_type str

    Type of the copied EBS volume. Valid values include gp2, gp3, io1, io2, sc1, st1, and standard.

    NOTE: When changing the size, iops or type of a volume, there are considerations to be aware of.

    sourceVolumeId String
    ID of the source EBS volume to copy. Changing this value forces replacement of the resource.
    iops Number
    Provisioned IOPS for the copied volume. Use only with volume types that support provisioned IOPS, such as gp3.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration. This must match the Region of the source EBS volume referenced by sourceVolumeId.
    size Number
    Size of the copied volume, in GiB.
    tags Map<String>
    A map of tags to assign to the copied volume. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    throughput Number
    Throughput for the copied volume, in MiB/s. Valid only when volumeType is gp3.
    timeouts Property Map
    volumeType String

    Type of the copied EBS volume. Valid values include gp2, gp3, io1, io2, sc1, st1, and standard.

    NOTE: When changing the size, iops or type of a volume, there are considerations to be aware of.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the VolumeCopy resource produces the following output properties:

    Arn string
    Amazon Resource Name (ARN) of the copied EBS volume.
    AvailabilityZone string
    Availability Zone for the copied volume.
    Id string
    The provider-assigned unique ID for this managed resource.
    TagsAll Dictionary<string, string>
    A map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    Arn string
    Amazon Resource Name (ARN) of the copied EBS volume.
    AvailabilityZone string
    Availability Zone for the copied volume.
    Id string
    The provider-assigned unique ID for this managed resource.
    TagsAll map[string]string
    A map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn string
    Amazon Resource Name (ARN) of the copied EBS volume.
    availability_zone string
    Availability Zone for the copied volume.
    id string
    The provider-assigned unique ID for this managed resource.
    tags_all map(string)
    A map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn String
    Amazon Resource Name (ARN) of the copied EBS volume.
    availabilityZone String
    Availability Zone for the copied volume.
    id String
    The provider-assigned unique ID for this managed resource.
    tagsAll Map<String,String>
    A map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn string
    Amazon Resource Name (ARN) of the copied EBS volume.
    availabilityZone string
    Availability Zone for the copied volume.
    id string
    The provider-assigned unique ID for this managed resource.
    tagsAll {[key: string]: string}
    A map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn str
    Amazon Resource Name (ARN) of the copied EBS volume.
    availability_zone str
    Availability Zone for the copied volume.
    id str
    The provider-assigned unique ID for this managed resource.
    tags_all Mapping[str, str]
    A map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn String
    Amazon Resource Name (ARN) of the copied EBS volume.
    availabilityZone String
    Availability Zone for the copied volume.
    id String
    The provider-assigned unique ID for this managed resource.
    tagsAll Map<String>
    A map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.

    Look up Existing VolumeCopy Resource

    Get an existing VolumeCopy resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: VolumeCopyState, opts?: CustomResourceOptions): VolumeCopy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            arn: Optional[str] = None,
            availability_zone: Optional[str] = None,
            iops: Optional[int] = None,
            region: Optional[str] = None,
            size: Optional[int] = None,
            source_volume_id: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            tags_all: Optional[Mapping[str, str]] = None,
            throughput: Optional[int] = None,
            timeouts: Optional[VolumeCopyTimeoutsArgs] = None,
            volume_type: Optional[str] = None) -> VolumeCopy
    func GetVolumeCopy(ctx *Context, name string, id IDInput, state *VolumeCopyState, opts ...ResourceOption) (*VolumeCopy, error)
    public static VolumeCopy Get(string name, Input<string> id, VolumeCopyState? state, CustomResourceOptions? opts = null)
    public static VolumeCopy get(String name, Output<String> id, VolumeCopyState state, CustomResourceOptions options)
    resources:  _:    type: aws:ebs:VolumeCopy    get:      id: ${id}
    import {
      to = aws_ebs_volumecopy.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Arn string
    Amazon Resource Name (ARN) of the copied EBS volume.
    AvailabilityZone string
    Availability Zone for the copied volume.
    Iops int
    Provisioned IOPS for the copied volume. Use only with volume types that support provisioned IOPS, such as gp3.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration. This must match the Region of the source EBS volume referenced by sourceVolumeId.
    Size int
    Size of the copied volume, in GiB.
    SourceVolumeId string
    ID of the source EBS volume to copy. Changing this value forces replacement of the resource.
    Tags Dictionary<string, string>
    A map of tags to assign to the copied volume. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll Dictionary<string, string>
    A map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    Throughput int
    Throughput for the copied volume, in MiB/s. Valid only when volumeType is gp3.
    Timeouts VolumeCopyTimeouts
    VolumeType string

    Type of the copied EBS volume. Valid values include gp2, gp3, io1, io2, sc1, st1, and standard.

    NOTE: When changing the size, iops or type of a volume, there are considerations to be aware of.

    Arn string
    Amazon Resource Name (ARN) of the copied EBS volume.
    AvailabilityZone string
    Availability Zone for the copied volume.
    Iops int
    Provisioned IOPS for the copied volume. Use only with volume types that support provisioned IOPS, such as gp3.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration. This must match the Region of the source EBS volume referenced by sourceVolumeId.
    Size int
    Size of the copied volume, in GiB.
    SourceVolumeId string
    ID of the source EBS volume to copy. Changing this value forces replacement of the resource.
    Tags map[string]string
    A map of tags to assign to the copied volume. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll map[string]string
    A map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    Throughput int
    Throughput for the copied volume, in MiB/s. Valid only when volumeType is gp3.
    Timeouts VolumeCopyTimeoutsArgs
    VolumeType string

    Type of the copied EBS volume. Valid values include gp2, gp3, io1, io2, sc1, st1, and standard.

    NOTE: When changing the size, iops or type of a volume, there are considerations to be aware of.

    arn string
    Amazon Resource Name (ARN) of the copied EBS volume.
    availability_zone string
    Availability Zone for the copied volume.
    iops number
    Provisioned IOPS for the copied volume. Use only with volume types that support provisioned IOPS, such as gp3.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration. This must match the Region of the source EBS volume referenced by sourceVolumeId.
    size number
    Size of the copied volume, in GiB.
    source_volume_id string
    ID of the source EBS volume to copy. Changing this value forces replacement of the resource.
    tags map(string)
    A map of tags to assign to the copied volume. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tags_all map(string)
    A map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    throughput number
    Throughput for the copied volume, in MiB/s. Valid only when volumeType is gp3.
    timeouts object
    volume_type string

    Type of the copied EBS volume. Valid values include gp2, gp3, io1, io2, sc1, st1, and standard.

    NOTE: When changing the size, iops or type of a volume, there are considerations to be aware of.

    arn String
    Amazon Resource Name (ARN) of the copied EBS volume.
    availabilityZone String
    Availability Zone for the copied volume.
    iops Integer
    Provisioned IOPS for the copied volume. Use only with volume types that support provisioned IOPS, such as gp3.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration. This must match the Region of the source EBS volume referenced by sourceVolumeId.
    size Integer
    Size of the copied volume, in GiB.
    sourceVolumeId String
    ID of the source EBS volume to copy. Changing this value forces replacement of the resource.
    tags Map<String,String>
    A map of tags to assign to the copied volume. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String,String>
    A map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    throughput Integer
    Throughput for the copied volume, in MiB/s. Valid only when volumeType is gp3.
    timeouts VolumeCopyTimeouts
    volumeType String

    Type of the copied EBS volume. Valid values include gp2, gp3, io1, io2, sc1, st1, and standard.

    NOTE: When changing the size, iops or type of a volume, there are considerations to be aware of.

    arn string
    Amazon Resource Name (ARN) of the copied EBS volume.
    availabilityZone string
    Availability Zone for the copied volume.
    iops number
    Provisioned IOPS for the copied volume. Use only with volume types that support provisioned IOPS, such as gp3.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration. This must match the Region of the source EBS volume referenced by sourceVolumeId.
    size number
    Size of the copied volume, in GiB.
    sourceVolumeId string
    ID of the source EBS volume to copy. Changing this value forces replacement of the resource.
    tags {[key: string]: string}
    A map of tags to assign to the copied volume. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll {[key: string]: string}
    A map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    throughput number
    Throughput for the copied volume, in MiB/s. Valid only when volumeType is gp3.
    timeouts VolumeCopyTimeouts
    volumeType string

    Type of the copied EBS volume. Valid values include gp2, gp3, io1, io2, sc1, st1, and standard.

    NOTE: When changing the size, iops or type of a volume, there are considerations to be aware of.

    arn str
    Amazon Resource Name (ARN) of the copied EBS volume.
    availability_zone str
    Availability Zone for the copied volume.
    iops int
    Provisioned IOPS for the copied volume. Use only with volume types that support provisioned IOPS, such as gp3.
    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration. This must match the Region of the source EBS volume referenced by sourceVolumeId.
    size int
    Size of the copied volume, in GiB.
    source_volume_id str
    ID of the source EBS volume to copy. Changing this value forces replacement of the resource.
    tags Mapping[str, str]
    A map of tags to assign to the copied volume. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tags_all Mapping[str, str]
    A map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    throughput int
    Throughput for the copied volume, in MiB/s. Valid only when volumeType is gp3.
    timeouts VolumeCopyTimeoutsArgs
    volume_type str

    Type of the copied EBS volume. Valid values include gp2, gp3, io1, io2, sc1, st1, and standard.

    NOTE: When changing the size, iops or type of a volume, there are considerations to be aware of.

    arn String
    Amazon Resource Name (ARN) of the copied EBS volume.
    availabilityZone String
    Availability Zone for the copied volume.
    iops Number
    Provisioned IOPS for the copied volume. Use only with volume types that support provisioned IOPS, such as gp3.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration. This must match the Region of the source EBS volume referenced by sourceVolumeId.
    size Number
    Size of the copied volume, in GiB.
    sourceVolumeId String
    ID of the source EBS volume to copy. Changing this value forces replacement of the resource.
    tags Map<String>
    A map of tags to assign to the copied volume. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String>
    A map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    throughput Number
    Throughput for the copied volume, in MiB/s. Valid only when volumeType is gp3.
    timeouts Property Map
    volumeType String

    Type of the copied EBS volume. Valid values include gp2, gp3, io1, io2, sc1, st1, and standard.

    NOTE: When changing the size, iops or type of a volume, there are considerations to be aware of.

    Supporting Types

    VolumeCopyTimeouts, VolumeCopyTimeoutsArgs

    Create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    Update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    Update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).

    Import

    Identity Schema

    Required

    • id (String) Volume ID.

    Optional

    • accountId (String) AWS Account where this resource is managed.
    • region (String) Region where this resource is managed.

    Using pulumi import, import an EBS Volume Copy using the volume ID. For example:

    $ pulumi import aws:ebs/volumeCopy:VolumeCopy example vol-049df61146c4d7901
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    Viewing docs for AWS v7.28.0
    published on Thursday, Apr 30, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.