This does the parsing of the environment variable for the key and security group