diff --git a/pipelines/ec2/describe_ec2_instances.hcl b/pipelines/ec2/describe_ec2_instances.hcl index 63e7285..d03fabb 100644 --- a/pipelines/ec2/describe_ec2_instances.hcl +++ b/pipelines/ec2/describe_ec2_instances.hcl @@ -41,7 +41,7 @@ pipeline "describe_ec2_instances" { cmd = concat( ["ec2", "describe-instances"], - param.instance_ids != null && try(length(param.instance_ids), 0) > 0 ? concat(["--instance-ids"], param.instance_ids) : [], + try(length(param.instance_ids), 0) > 0 ? concat(["--instance-ids"], param.instance_ids) : [], param.instance_type != null ? ["--filters", "Name=instance-type,Values=${param.instance_type}"] : [], param.ebs_optimized != null ? ["--filters", "Name=ebs-optimized,Values=${param.ebs_optimized}"] : [] )