Theorem. The following are equivalent for any Hausdorff space X$X$.
X$X$ is compact.
Xκ$X^\kappa$ is Lindelöf for any cardinal κ$\kappa$.
Xω1$X^{\omega_1}$ is Lindelöf.
Proof. The forward implications are easy, using Tychonoff for 1 implies 2, since if X$X$ is compact, then Xκ$X^\kappa$ is compact and hence Lindelöf.
So suppose that we have a space X$X$ that is not compact, but Xω1$X^{\omega_1}$ is Lindelöf. It follows that X$X$ is Lindelöf. Thus, there is a countable cover having no finite subcover. From this, we may construct a strictly increasing sequence of open sets U0 subset U1 subset ... Un$U_0 \subset U_1 \subset \dots U_n \dots$ ... withwith the union U{ Un | n in ω} = X$\bigcup\lbrace U_n \; | \; n \in \omega \rbrace = X$.
For each J subset ω1$J \subset \omega_1$ of size n$n$, let UJ$U_J$ be the set {s in Xω1 | s(α) in Un$\lbrace s \in X^{\omega_1} \; | \; s(\alpha) \in U_n$ for each α in J}$\alpha \in J \rbrace$. As the size of J increases$J$ increases, the set UJ$U_J$ allows more freedom on the coordinates in J$J$, but restricts more coordinates. If J$J$ has size n$n$, let us call UJ$U_J$ an open n$n$-box, since it restricts the sequences on n$n$ coordinates. Let F$F$ be the family of all such UJ$U_J$ for all finite J subset ω1.$J \subset \omega_1$
This F$F$ is a cover of Xω1$X^{\omega_1}$. To see this, consider any point s in Xω1$s \in X^{\omega_1}$. For each α in ω1$\alpha \in \omega_1$, there is some n$n$ with s(α) in Un$s(\alpha) \in U_n$. Since ω1$\omega_1$ is uncountable, there must be some value of n$n$ that is repeated unboundedly often, in particular, some n$n$ occurs at least n$n$ times. Let J$J$ be the coordinates where this n$n$ appears. Thus, s$s$ is in UJ$U_J$. So F$F$ is a cover.
Since Xω1$X^{\omega_1}$ is Lindelöf, there must be a countable subcover F0$F_0$. Let J*$J^*$ be the union of all the finite J$J$ that appear in the UJ$U_J$ in this subcover. So J*$J^*$ is a countable subset of ω1$\omega_1$. Note that J*$J^*$ cannot be finite, since then the sizes of the J$J$ appearing in F0$F_0$ would be bounded and it could not cover Xω1$X^{\omega_1}$. We may rearrange indices and assume without loss of generality that J*=ω$J^*=\omega$ is the first ω$\omega$ many coordinates. So F0$F_0$ is really a cover of Xω$X^\omega$, by ignoring the other coordinates.
But this is impossible. Define a sequence s in Xω1$s \in X^{\omega_1}$ by choosing s(n)$s(n)$ to be outside Un+1$U_{n+1}$, and otherwise arbitrary. Note that s$s$ is in Un$U_n$ in fewer than n$n$ coordinates below ω$\omega$, and so s$s$ is not in any n$n$-box with J subset ω$J \subset \omega$, since any such box has n$n$ values in Un$U_n$. Thus, s$s$ is not in any set in F0$F_0$, so it is not a cover. QED
In particular, to answer the question at the end, it suffices to take any uncountable kappa$\kappa$.