func newStack(bs *provider.BaseStack) (provider.Stack, error) { s := &Stack{ BaseStack: bs, } bs.SSHKeyPairFunc = s.setSSHKeyPair return s, nil }