# aws


09/22/2020, 1:06 PM
I have a funny issue - My provider is initialized with an access key and secret that are only valid for an hour. Because pulumi saves these credentials to the state file if I try after about an hour to use the state and refresh it, it tries to use the expired credentials (even though I have in hand the valid ones) and the refresh operation just hangs in the process. Is there a way to overcome this ? I can’t use a long lived credentials
I have found a temporary wort around, I’m using credential file option so that the only thing that persists in the state for the provider is the file path to the credentials (which should stay consistent across all instances I’m running this)