-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathia-codebuild.tf
More file actions
37 lines (32 loc) · 994 Bytes
/
ia-codebuild.tf
File metadata and controls
37 lines (32 loc) · 994 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
resource "aws_codebuild_project" "ia-codebuild-plan" {
name = "ia-codebuild-project"
description = "ia_codebuild_project"
build_timeout = 5
service_role = aws_iam_role.ia-codebuild-role.arn
source {
type = "GITHUB"
location = "https://github.com/Idea-Archive/Idea-Archive-Server.git"
buildspec = file("buildspec/ia-buildspec.yml")
git_clone_depth = 1
git_submodules_config{
fetch_submodules = true
}
}
source_version = "master"
artifacts {
type = "NO_ARTIFACTS"
}
environment {
compute_type = "BUILD_GENERAL1_SMALL"
image = "aws/codebuild/standard:5.0"
type = "LINUX_CONTAINER"
image_pull_credentials_type = "CODEBUILD"
dynamic "environment_variable" {
for_each = var.env_vars
content {
name = environment_variable.key
value = environment_variable.value
}
}
}
}