Uniform Continuity on Metric Space does not imply Compactness

Theorem
Let $M_1 = \left({A_1, d_1}\right)$ and $M_2 = \left({A_2, d_2}\right)$ be metric spaces.

Let $f: A_1 \to A_2$ be a uniformly continuous mapping on $A_1$.

Then $M_1$ does not necessarily have to be a compact metric space.

Proof
Let $M_1 = \left({A_1, d_1}\right)$ be any metric space which is not compact.

Let $I_{M_1}: M_1 \to M_1$ be the identity mapping.

From Identity Mapping is Uniformly Continuous, $I_{M_1}$ is uniformly continuous on $M_1$.

Hence the result.