terraform-provider-codefresh icon indicating copy to clipboard operation
terraform-provider-codefresh copied to clipboard

Refreshing state does not handle manually removed resources

Open dansali opened this issue 4 years ago • 0 comments

When manually removing a resource that the codefresh provider has created, instead of it recreating the removed resource on the next plan/apply, it throws an error (404) and halts plan/apply.

I've noticed this for a pipeline, but I suspect it might affect other resources too.

The refreshed state will be used to calculate this plan, but will not be                                                                                                                         
persisted to local or remote state storage.   

codefresh_pipeline.pipelines["..."]: Refreshing state... [id=60adecb19acab6d815ff60d3]                        
                                                                  
Error: 404 Not Found, {"status":404,"code":"4201","name":"PIPELINE_NOT_FOUND_ERROR","message":"Could not find pipeline: 60adecb19acab6d815ff60d3","context":{"id":"60adecb19acab6d815ff60d3"}}

dansali avatar May 26 '21 07:05 dansali