The direct carbonylation of the heterocyclic amines like indoles and indazoles using diethylazodicarboxylate (DEAD) in the presence of tetraethyl ammonium cyanide (TEACN) resulted in regio-selective C- or N-ethoxycarbonylations depending on the substituents present on the benzene ring of these heteroaromatic compounds.