Hi Team,
I have recently starting working on existing terraform code to support GCP. The issue I am facing is, terraform plan is suggesting to create a resource which does not exists in the configuration but presents in state file.
In GCP there is a pub-sub topic on the gcp console. When I run the plan it is presenting to create the subscription to that topic. That subscription configuration does not exists in the configuration files, but when I search in the respective state file, I could see that subscription.
If its there in the state, but does not exists in the configuration file, it should suggest for a deletion right ?
Some additional context :
previous team who worked, they were trying to import this resource into modules based on the comments I see, but I do not see that resource on the console and as well as in the module.
Can someone please some direction on how to look at this.
Thank you in advance