Can we automate adding inputs to splunk aws for respective heavy forwarders
What exactly do you want to automate?
Anyway, since splunk's config is "just" a set of files (preferablly organized into apps) almost anything configuration-wise should be feasible with your tool of choice (ansible, puppet, whatever) given you prepare your config layout properly.