Skip to content

Latest commit

 

History

History
53 lines (37 loc) · 1.24 KB

File metadata and controls

53 lines (37 loc) · 1.24 KB

aws_ebs_volume

Summary

This example introduces aws_ebs_volume resource.

Differences

Unsupported attributes

  • encrypted
  • kms_key_id

Notes

gp2, io2 and st2 are valid values for type attribute. The volume size of st2 type volumes varies from 32 GiB to 4 TiB and must be multiple of 8 GiB. The volume size for gp2 and io2 volumes type varies from 8 GiB to 4 TiB. The volume size must be multiple of 8 GiB. The io2 volumes support the iops option, it's necessary to define it for io2 volume type in the range from 100 to 50000. For more information visit documentation page.

Special notes

This resource supports tags attribute:

Example tag

resource "aws_ebs_volume" "test_volume_iops" {
    ...

    tags = {
      Name = "value"
    }
    ...
 }

The io2 volumes support the iops option, it's necessary to define it for io2 volume type.

resource "aws_ebs_volume" "test_volume_iops" {
    ...

    iops = 500
    ...
 }

Example

.. literalinclude:: main.tf