Skip to content

Commit

Permalink
Update to the latest ECR tag and make repo_tag a variable (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-corbalt authored Jul 16, 2024
1 parent 92dc46c commit 57ace6f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion terraform/collector/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ module "security_hub_collector_runner" {
task_name = "scheduled-collector"
repo_arn = "arn:aws:ecr:us-east-1:037370603820:repository/security-hub-collector"
repo_url = "037370603820.dkr.ecr.us-east-1.amazonaws.com/security-hub-collector"
repo_tag = "d93a473"
repo_tag = var.repo_tag
ecs_vpc_id = var.ecs_vpc_id
ecs_subnet_ids = var.ecs_subnet_ids
schedule_task_expression = var.schedule_task_expression
Expand Down
1 change: 1 addition & 0 deletions terraform/collector/terraform.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ output_path = ""
s3_key = ""
aws_cloudwatch_log_group_name = "security_hub_collector"
assign_public_ip = true
repo_tag = "92dc46c"
5 changes: 5 additions & 0 deletions terraform/collector/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,8 @@ variable "assign_public_ip" {
description = "Whether to assign a public IP address to the ECS task"
type = bool
}

variable "repo_tag" {
description = "ECR Tag of the image to run in the ECS Task"
type = string
}

0 comments on commit 57ace6f

Please sign in to comment.