Difference between revisions of "Terraform resource: ebs block device argument"
Jump to navigation
Jump to search
(12 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | + | * https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/instance#ebs_block_device | |
− | * <code>ebs_block_device</code> [[argument]] in [[aws_instance]] resource | + | * <code>ebs_block_device</code> [[argument]] in <code>[[aws_instance]]</code> resource https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/instance#ebs-ephemeral-and-root-block-devices |
* <code>ebs_block_device</code> [[input]] in [[ec2-instance]] module | * <code>ebs_block_device</code> [[input]] in [[ec2-instance]] module | ||
Line 7: | Line 7: | ||
ebs_block_device { | ebs_block_device { | ||
[[device_name]] = "[[/dev/sdf]]" | [[device_name]] = "[[/dev/sdf]]" | ||
− | volume_size = 50 | + | [[volume_size]] = 50 |
− | volume_type = "gp3" | + | [[volume_type]] = "[[gp3]]" |
− | delete_on_termination = false | + | [[delete_on_termination]] = false |
} | } | ||
+ | |||
+ | |||
+ | |||
+ | volume_type [[will be updated in-place]] | ||
+ | [[encrypted]] | ||
== Related == | == Related == | ||
Line 16: | Line 21: | ||
* [[Terraform apply: ec2 instance example (aws instance)]] | * [[Terraform apply: ec2 instance example (aws instance)]] | ||
* Terraform resource: [[aws_ebs_volume]] | * Terraform resource: [[aws_ebs_volume]] | ||
+ | * <code>[[root_block_device]]</code> | ||
== See also == | == See also == | ||
+ | * {{ebs block device argument}} | ||
+ | * {{ebs_block_device}} | ||
* {{tf ec2}} | * {{tf ec2}} | ||
[[Category:Terraform]] | [[Category:Terraform]] |
Latest revision as of 11:12, 25 October 2024
ebs_block_device
argument inaws_instance
resource https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/instance#ebs-ephemeral-and-root-block-devicesebs_block_device
input in ec2-instance module
Example[edit]
ebs_block_device { device_name = "/dev/sdf" volume_size = 50 volume_type = "gp3" delete_on_termination = false }
volume_type will be updated in-place encrypted
Related[edit]
- Terraform resource: aws_volume_attachment
- Terraform apply: ec2 instance example (aws instance)
- Terraform resource: aws_ebs_volume
root_block_device
See also[edit]
Advertising: