You should have bought 12volt relay modules.
Now you have to drop 12volt to 5volt (1Amp) with a separate relay supply.
You can use a buck converter for that, or an 7805 regulator as Robin2 suggested.
Note that a linear 7805 could dissipate ~7watt, and will need a heatsink when all relays are on.
A buck converter does not need a heatsink.
Power the relay modules with 5volt(+) on the JD-VCC pin (jumper removed) and relay ground.
Connect relay VCC to Arduino's 5volt pin, and the relay inputs to Arduino outputs.
Do_not_connect_relay_ground_to_Arduino_ground.
Power the Arduino (Uno?) with 12volt on the DC socket.
Leo..