Best Practices for creating/mounting new AWS EBS volumes

I was wondering if there are recommended best practices for creating extfs filesystems and then mounting those after you provision/attach the EBS volume through Terraform:

resource “aws_ebs_volume” “bookie0” {
availability_zone = “eu-west-1a”
type = “gp2”
size = 40
}

resource “aws_volume_attachment” “ebs_att” {
device_name = “/dev/sdf”
volume_id = aws_ebs_volume.bookie0.id
instance_id = aws_instance.bookie0.id
}

What I get here is a EBS volume attached to the AWS Instance as /dev/sdf. Which if what I would expect. But now we need to create a filesystem on that device and mount it.

  1. Should something like this be done through Terraform?
  2. What is the recommended way of doing this?

Is this forum dead or what’s the deal here - I expected to see a reply of some sort at least.