Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Access level - Repo | Compute - EC2 | Mode - Container

module "codebuild_project" {
  source = "git@github.com:flexion/aws-codebuild-runner-project-tf-module.git?ref=1.0.0"

  name                     = "my-codebuild-project"
  description              = "Builds on workflow events"
  build_timeout            = 10
  service_role_arn         = "arn:aws:iam::123456789012:role/codebuild-role"
  // Running mode
  environment_type         = "LINUX_CONTAINER"
  // Compute Type: EC2
  environment_compute_type = "BUILD_GENERAL1_SMALL"
  // Image: EC2 AMI Image
  environment_image        = "aws/codebuild/amazonlinux-x86_64-standard:5.0"
  // As the access level is repo; remote repo address
  source_location          = "https://github.com/my-org/my-repo"
  codeconnections_arn      = "arn:aws:codestar-connections:us-east-1:123456789012:connection/abc123"
  // github_org_name          = "my-org"  Only needed if the webhook access level is org level; will be ignored if source_location != "CODEBUILD_DEFAULT_WEBHOOK_SOURCE_LOCATION"
}