Legacy Module cant use for_each, count ,,,

hello team ,
Im getting this following error when doing terraform init. Kindly do the needful asap


image

Hi @gajalakshmi2901,

If you need to use for_each with this module then you will need to do what is described in the second paragraph of the error message description: move the provider "aws" block into the root module.