AWS credential for terraform

Hi guys,

I am deploying terraform scripts using gitlab ci on aws cloud. As of now i am using aws access key and secret token but they expire every in12 hours and i have to update the credential after every 12 hours in pipeline. Is there any way so that i dont have to update the credential variable in pipeline. Please help.

Regards