diff --git a/examples/complete/main.tf b/examples/complete/main.tf index ab37526..db87a06 100644 --- a/examples/complete/main.tf +++ b/examples/complete/main.tf @@ -44,7 +44,7 @@ module "container_definition" { module "ecs_alb_service_task" { source = "cloudposse/ecs-alb-service-task/aws" - version = "0.42.3" + version = "0.66.2" alb_security_group = module.vpc.vpc_default_security_group_id container_definition_json = module.container_definition.json_map_encoded_list ecs_cluster_arn = aws_ecs_cluster.default.arn diff --git a/main.tf b/main.tf index 2feda47..64bc2ad 100644 --- a/main.tf +++ b/main.tf @@ -217,6 +217,7 @@ module "codebuild" { build_image = var.build_image build_compute_type = var.build_compute_type build_timeout = var.build_timeout + build_type = var.build_type buildspec = var.buildspec delimiter = module.this.delimiter attributes = ["build"] @@ -447,6 +448,11 @@ resource "aws_codepipeline_webhook" "webhook" { } } +provider "github" { + token = var.github_webhooks_token + owner = var.repo_owner +} + module "github_webhooks" { source = "cloudposse/repository-webhooks/github" version = "0.13.0" diff --git a/variables.tf b/variables.tf index 9b5ff3f..4c52465 100644 --- a/variables.tf +++ b/variables.tf @@ -59,6 +59,11 @@ variable "build_timeout" { description = "How long in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait until timing out any related build that does not get marked as completed" } +variable "build_type" { + type = string + default = "LINUX_CONTAINER" +} + variable "buildspec" { type = string default = "" diff --git a/versions.tf b/versions.tf index ad19696..b9d02b3 100644 --- a/versions.tf +++ b/versions.tf @@ -10,5 +10,9 @@ terraform { source = "hashicorp/random" version = ">= 2.1" } + github = { + source = "integrations/github" + version = ">= 4.2.0" + } } }