In the localization of 5-dimensional N = 1 super-Yang-Mills, contact-instantons arise as non-perturbative contributions. In this note, we revisit such configurations and discuss their generalizations. We propose for contact-instantons a cohomological theory whose BRST observables are invariants of the background contact geometry. To make the formalism more concrete, we study the moduli problem of contact- instanton, and we find that it is closely related to the eqiuivariant index of a canonical Dirac-Kohn operator associated to the geometry. An integral formula is given when the geometry is K-contact. We also discuss the relation to 5d N = 1 super-Yang- Mills, and by studying a contact-instanton solution canonical to the background geometry, we discuss a possible connection between N = 1 theory and contact homology. We also uplift the 5d theory a 6d cohomological theory which localizes to Donaldson-Uhlenbeck-Yau instantons when placed on special geometry.