secondary_sources in aws_codebuild cannot be removed #18755
Labels
bug
Addresses a defect in current functionality.
service/codebuild
Issues and PRs that pertain to the codebuild service.
Milestone
We noticed that removing secondary sources from a aws_codebuild resource that was constructed using terraform does not remove the secondary sources from the actual AWS resource. Consecutive
terraform apply
calls will display the secondary_sources section as being removed every time. Manually editing the CodeBuild project resolves this issue. However, we had to update hundreds of CodeBuild projects, so the only solution we had was to destroy the resource and to construct it again, thus losing the build history.The text was updated successfully, but these errors were encountered: