The answer, as suggested by @caldazar was to define a provider in the scope, in this case adding the region, that was missing. Follow Getting error as "The scope is not valid., field: SCOPE_VALUE, parameter: CLOUDFRONT", in terraform to get more details about the solution