     let (_, stdout, _) = ShellCommand.piped(command: "swift package dump-package", label: "pkg info")
     return JSON(data: stdout.data(using: .utf8)!)
 }
-
-var config = Template.parseTemplateAtPath(".")!
 
 func dockerfile() -> String {
     let packageName = packageInfo()["name"].stringValue


class DestroyCommand {
    func command() {
        CloudFormation.stackDown(name: config.name)
    }
}


class LogsCommand {
    func command(tail: Bool) {
        let config = Template.parseTemplateAtPath(".")!
        
        let stackOutputs = CloudFormation.outputs(name: config.name)
        let functionName = stackOutputs["FunctionName"]!
        let group = "/aws/lambda/\(functionName)"
