Terraform resource dynamic

i want to create more than 50 eventbridge rule to connect to lambda. looking for some way to optimize creating resource for all 50. is there any way to create dynamic ?