Resource: aws_ebs_volume

Manages a single EBS volume.

Example Usage

resource "aws_ebs_volume" "example" {
  availability_zone = "us-west-2a"
  size              = 40

  tags = {
    Name = "HelloWorld"
  }
}

Argument Reference

This resource supports the following arguments:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Timeouts

Configuration options:

Import

In Terraform v1.5.0 and later, use an import block to import EBS Volumes using the id. For example:

import {
  to = aws_ebs_volume.id
  id = "vol-049df61146c4d7901"
}

Using terraform import, import EBS Volumes using the id. For example:

% terraform import aws_ebs_volume.id vol-049df61146c4d7901