Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing items should be re-applied #92

Open
davidhiebert opened this issue Jul 15, 2020 · 0 comments
Open

Missing items should be re-applied #92

davidhiebert opened this issue Jul 15, 2020 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@davidhiebert
Copy link

davidhiebert commented Jul 15, 2020

Expected Behavior:

A TeamCity GUI user deletes a resource. Terraform should re-apply the resource.

Actual Behavior:

When an item is deleted from TeamCity, and terraform apply is run, a 404 error is returned and TF closes with non-zero.

$ terraform apply
teamcity_project.web_artifacts: Refreshing state... [id=WebArtifacts]
teamcity_vcs_root_git.vcsroot["ccws"]: Refreshing state... [id=WebArtifacts_Api]

Error: Error when retrieving VcsRoot id = 'WebArtifacts_Api', status: 404

Workaround

terraform state rm teamcity_vcs_root_git.vcsroot["api"]
terraform apply
@cvbarros cvbarros added the bug Something isn't working label Jul 15, 2020
@cvbarros cvbarros added this to the 1.2 milestone Oct 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants