locals { account_id = "${data.aws_caller_identity.current_identity.account_id}" region = "${data.aws_region.current_region.name}" vpc_id = "${data.aws_vpc.current_vpc.id}" private_subnet_ids = "${sort(data.aws_subnets.private_subnets.ids)}" common_tags = { short_name = "${var.short_name}" owner_email = "${var.owner_email}" owner_name = "${var.owner_name}" "coxauto:ci-id" = var.ciid } } resource "alks_iamrole" "codebuild_role" { tags = {"coxauto:ci-id" = var.ciid} name = "${var.short_name}-codebuild" type = "AWS CodeBuild" include_default_policies = true } resource "aws_iam_role_policy" "codebuild_policy_logs" { name = "codebuild-policy-logs" role = "${alks_iamrole.codebuild_role.name}" policy = <