An embodiment performs, by an attribute value substitution engine, key-value extraction on infrastructure as code. The embodiment assigns, by the attribute value substitution engine, an attribute in a plurality of attributes to a value in the extracted key-value. The embodiment computes, by the attribute value substitution engine, a plurality of similarities between the plurality of attributes and a cloud resource. The embodiment groups, based on the plurality of similarities, the plurality of attributes into a group of attributes. The embodiment substitutes, by the attribute value substitution engine, the attribute with another attribute, the attribute and the another attribute belonging to the group of attributes.