If I deploy a resource using terraform and later i make some changes in same resource manually in cloud provider console. Then, Will terraform update its state file by just executing the Terraform Plan -refresh-only?
If yes, then how I can achieve it if using Gitlab CICD pipeline that has been created by some other team.
terraform plan -refresh-only
refreshes the state file without making any changes to the infrastructure.
For the pipeline you will have to speak to the other team for them to make the changes or get permissions to do so.