Hello, I am using terraform to deploy infrastructure. I have the backend configured in S3 and DynamoDB. I am using CodePipeline to deploy the infrastructure to aws. I got an issue when I was trying to upgrade the kafka config version and the pipeline got timeout leaving the having lock the state and being unable to update the tfstate. I manually removed the lock from Dynamo but when i run the pipeline again it says that the old config does not exist. When I open the AWS console i can see that new config is created and the cluster is using the new one.
Can you suggest how i can fix that issue with the state?
I was able to fix it by downloading the tf state form s3 and manually editing the resource Id with the existing one. Upload the new file in the bucket and delete the digest from the DynamoDb.