Need some help from the community. I think I almost have it but I can't find documentation showing me how to configure Codebuild project with AWS Codecommit. Looking for someone to give me a few links that can help or some assistance with my code.
resource "aws_codebuild_project" "cb_test_project" {
name = var.cb_name
description = var.description
build_timeout = var.build_timeout
service_role = var.cb_service_role
source_version = var.branch_name //set to main by default
artifacts {
type = "NO_ARTIFACTS"
}
environment {
compute_type = var.compute_type
image = var.image
type = var.environment_type
image_pull_credentials_type = "CODEBUILD"
privileged_mode = var.privileged_mode
}
source {
type = "CODECOMMIT"
location = "my_codecommit_repo"
buildspec = var.buildspec
}
}
My issue is it fails every time I run the build. Terraform Plan passes all the checks but the apply just errors out. I have no insight into what may be wrong with the syntax but I am hoping i am just missing something simple that will pass the build.
GitPullpermission even though it is not strictly related to AWS.