Skip to content

Instantly share code, notes, and snippets.

@stojce
Created March 3, 2020 08:05
Show Gist options
  • Save stojce/8cbd09d5a5fb834b00effb41de7a3c79 to your computer and use it in GitHub Desktop.
Save stojce/8cbd09d5a5fb834b00effb41de7a3c79 to your computer and use it in GitHub Desktop.
resource "aws_codebuild_project" "static_web_build" {
badge_enabled = false
build_timeout = 60
name = "static-web-build"
queued_timeout = 480
service_role = data.aws_iam_role.build_role.arn
tags = {
Environment = var.env
}
artifacts {
encryption_disabled = false
name = "static-web-build-${var.env}"
override_artifact_name = false
packaging = "NONE"
type = "CODEPIPELINE"
}
environment {
compute_type = "BUILD_GENERAL1_SMALL"
image = "aws/codebuild/amazonlinux2-x86_64-standard:2.0"
image_pull_credentials_type = "CODEBUILD"
privileged_mode = false
type = "LINUX_CONTAINER"
}
logs_config {
cloudwatch_logs {
status = "ENABLED"
}
s3_logs {
encryption_disabled = false
status = "DISABLED"
}
}
source {
buildspec = data.template_file.buildspec.rendered
git_clone_depth = 0
insecure_ssl = false
report_build_status = false
type = "CODEPIPELINE"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment