Using python boto3 library, I am using the ec2.create_instances function which returns the data shown below:
[ec2.Instance(id='i-34304930394309409')]
How do I simply extract the value for the id and put that into a another variable? I just want to retrieve "i-34304930394309409" and set that to a variable named "instanceid"
Is there a way to just call ec2.instance to retrieve this value?