Dynamic inventory / Inline content help

Hi all,

I am passing a jenkins build job to Ansible that contain the Instance ID such as “i-0803f13f0236a495f” I want to used this as the input to the dynamic inventory and was hoping to use the ec2.py script to do this but i can’t figure out how to pull this value back easily

What I want to be able to do is in the dynamic inventory field be able to send one or more ID and it return the correctly formatted JSON script but i can’t seem to do this with ec2.py can any one help?

Thank you

Aaron