added ec2.key and ec2.security.group to run function, changed my variables to my.variable.
change variable.name to my.variable.name so there's no variable name collision problems.