Error on Terraform Apply on GHA

The GHA was recently implemented on the company and I’m facing a problem that I would like to have some guidance, the first GHA deployment worked fine, it turns out that I modified the module and tried to run the GHA again, now the same code is failing because cannot find the plan. Error below:

module.lambda_xxx_token_refresher.module.lambda_token_refresher_package.null_resource.archive[0] (local-exec): FileNotFoundError: [Errno 2] No such file or directory: ‘builds/f35de7f0007a5de5bb4845c208137efb914c66381405878a6322a9a38316f7fa.plan.json’

I tried to split the package and module on modules but the same error appears.

Anyone to shed a light on it.

Just for your guys sake, I solved this issue doing a dummy modification on workspace and run-it again. it worked.

Depends how the workflow you’re using is setup.

At some point / scale, I’d suggest looking at tools like Atlantis, Spacelift, etc. – it does add some additional setup or cost, but it will make your life easier.