Refactored the code and added ability to apply a jmespath query to each ...

...resource created.