Search code examples
devopscicdpulumi

Pulumi commands not working after intruption


Interrupting pulumi up command caused below error

error: could not get cloud url: failed to read Pulumi credentials file. Please re-run `pulumi login` to reset your credentials file: unexpected end of JSON input

When trying to run pulumi login it gives below error

error: could not determine current cloud: failed to read Pulumi credentials file. Please re-run `pulumi login` to reset your credentials file: unexpected end of JSON input

Any idea how to fix this


Solution

  • This is due to corrupted credentials file, Run which pulumi and the credentials.json file in the installation directroy and delete it. Run pulumi login