Hi,
I’m trying to remove an object from Terrafrom State but I’m getting following error. Initially I tired to re-create the object through apply command as I’ve refactored ElasticCache Redis Cluster Objects. When I ran the Apply command after refactoring the code, All the old objects have been removed from Plan File, But Some Subnet Groups were not unable to delete, So I tried to delete them through AWS Console, After they got deleted, I tried to run the plan command and getting following command
Error: CacheParameterGroupNotFound: CacheParameterGroup http-apicluster not found.
status code: 404, request id: 6011c644-aefc-11e9-9ecc-a93f05e7d3c9
When I try to run remove command, I’m getting folowing error
terraform state rm CacheParameterGroup.http-apicluster
Acquiring state lock. This may take a few moments…
No matching resource instances found.
I tired this below command also but no luck.
terraform state rm resource.http-api-cluster
No matching resource instances found.
How to remove this object as I’m not able to re-run the refactored code? Any thoughts