Attach pipeline to index pattern

Please let us know how to link pipeline to a index pattern?

I already created a pipeline and want to attach to a index pattern so that it will be applicable for multiple index.

Attach it through an index template that applies to the indices matching the pattern.