List all EBS volumes

Hi everybody,

I’ve been looking for a way to get the list of all EBS volumes like the output of aws ec2 describe-volumes to create alarms and dashboards from terraform but there is no data.aws_ebs_volumes to get all the volumes.

Is there any way to get this list? Some volumes might not be attached to ec2 intances and not all volumes are managed by terraform either.


What happens if your filter in aws_ebs_volume matches more than one volume?

If it doesn’t throw an error, try just outputting all of it.

It’s not possible to use a filter that returns more than one element:

AFAICT, there is no way to get a list of volumes.

That should go in as a feature request IMO