The safest way to access any version of Minecraft on iOS is through the official Apple App Store.
If your goal is specifically to play the 1.17 version and not a later one, this is only officially supported on Minecraft: Java Edition Minecraft Launcher Installations New Installation release 1.17.1 4. Sideloading (Use Caution) minecraft 117 ipa download exclusive