def METHOD_NAME(env_name, keyname, timeout=None):
    io.log_warning(prompts['ssh.setupwarn'].replace('{env-name}',
                                                    env_name))
    keyname = prompt_for_ec2_keyname(env_name=env_name, keyname=keyname)
    if keyname:
        options = [
            {'Namespace': 'aws:autoscaling:launchconfiguration',
             'OptionName': 'EC2KeyName',
             'Value': keyname}
        ]
        commonops.update_environment(env_name, options, False, timeout=timeout or 5)