Terraform module which creates Persistent Disk (PD) resource on Google Compute Engine
Terraform 0.12 and newer
module "disk" { source = . name = "my-disk" size = "30" type = "pd-ssd" compute_zone = "us-east4-a" }
Name | Description | Type | Default | Required |
---|---|---|---|---|
name | Name of the disk | string |
disk |
no |
size | Size of the disk | string |
10 |
no |
type | Type of the disk | string |
pd-ssd |
no |
compute_zone | The compute zone of the disk, default to current configured zone | string |
n/a |
yes |
project_id | The project of the disk, default to current configured project | string |
n/a |
yes |
Name | Description | Type |
---|---|---|
id | Self link to the disk | string |