diff --git a/builtin/providers/aws/resource_aws_codebuild_project.go b/builtin/providers/aws/resource_aws_codebuild_project.go index 379002664..9caf6d992 100644 --- a/builtin/providers/aws/resource_aws_codebuild_project.go +++ b/builtin/providers/aws/resource_aws_codebuild_project.go @@ -588,7 +588,7 @@ func sourceAuthToMap(sourceAuth *codebuild.SourceAuth) map[string]interface{} { auth := map[string]interface{}{} auth["type"] = *sourceAuth.Type - if sourceAuth.Type != nil { + if sourceAuth.Resource != nil { auth["resource"] = *sourceAuth.Resource }