# resource "aws_codecommit_repository" "collectd-rpm" { # repository_name = "collectd-rpm" # description = "MDR collectd RPMs based on EPEL spec file" # } # resource "aws_codebuild_project" "collectd-rpm" { # name = "collectd-rpm" # description = "MDR collects RPMs based on EPEL spec file" # service_role = "${data.aws_iam_role.codebuild_role.arn}" # encryption_key = "${aws_kms_key.s3_codebuild_artifacts.arn}" # source { # type = "CODECOMMIT" # location = "${aws_codecommit_repository.collectd-rpm.clone_url_http}" # } # artifacts { # type = "S3" # location = "${aws_s3_bucket.artifacts.id}" # name = "/" # path = "collectd" # namespace_type = "BUILD_ID" # packaging = "NONE" # } # environment { # compute_type = "BUILD_GENERAL1_SMALL" # image = "${aws_ecr_repository.codebuild-rhel7.repository_url}" # type = "LINUX_CONTAINER" # } # }