as salam alaikum
Allah is "al-Haqq" which stands for "objective truth". Therefore if your fear of death leads you to accept that there is no god but Allah in absolute terms, it is in fact Allah to have opened your heart to Him.
However if you are thinking of Allah as a "normative truth", an object that you yourself have produced or idealized to regulate or better live your life, that's not Allah but a creation of your own.
With prayers for your success.