Dear community,
I’m deploying an aws eks cluster using the terraform-aws-eks module. Now I want to attach additional ebs volumes to the worker nodes in the cluster but I have no clue how to do that.
I know there is a property called additional_ebs_volumes
in which you must provide resources with “block_device_name” property. From the module local.tf
:
additional_ebs_volumes = [] # A list of additional volumes to be attached to the instances on this Auto Scaling group. Each volume should be an object with the following: block_device_name (required), volume_size, volume_type, iops, encrypted, kms_key_id (only on launch-template), delete_on_termination. Optional values are grabbed from root volume or from defaults
But it is not clear what resource type this refers to. An aws_ebs_volume
does not have the required property, hence it fails to set up. Giving the lack of an example of this configuration I’m not sure exactly how to achieve what I’m looking for.
BTW, I’m new to terraform modules & eks managed by terraform, so I don’t know if I’m missing an obvious thing.
Any advice?
Thank you