Skip to content

Commit

Permalink
Merge pull request #5 from hazelops/feature/fluent-bit-public-repo
Browse files Browse the repository at this point in the history
Switch to aws public repo for fluent bit, other improvements
  • Loading branch information
AutomationD authored Jan 21, 2022
2 parents dfcc4ca + 25e77b7 commit 644ff64
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion autoscaling.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module "autoscaling" {
target_group_arns = var.app_type == "web" ? module.alb[0].target_group_arns : []
user_data = var.ecs_launch_type == "EC2" ? data.template_file.asg_ecs_ec2_user_data.rendered : null

vpc_zone_identifier = var.private_subnets
vpc_zone_identifier = var.public_ecs_service ? var.public_subnets : var.private_subnets
health_check_type = var.autoscaling_health_check_type
min_size = var.min_size
max_size = var.max_size
Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ module "service" {

web_proxy_enabled = var.web_proxy_enabled
ecs_exec_enabled = var.ecs_exec_enabled
subnets = var.public_service ? var.public_subnets : var.private_subnets
subnets = var.public_ecs_service ? var.public_subnets : var.private_subnets

# length(var.cloudwatch_schedule_expressions) > 1 means that it is cron task and desired_count should be 0
cloudwatch_schedule_expressions = var.cloudwatch_schedule_expressions
Expand Down
4 changes: 2 additions & 2 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ locals {
fluentbit_container_definition = [
{
essential = true
image = "amazon/aws-for-fluent-bit:latest"
image = "public.ecr.aws/aws-observability/aws-for-fluent-bit:latest"
name = "log_router"
memoryReservation = 75
firelensConfiguration = {
Expand Down Expand Up @@ -162,7 +162,7 @@ variable "app_secrets" {
default = []
}

variable "public_service" {
variable "public_ecs_service" {
description = "It's publicity accessible service"
type = bool
default = false
Expand Down

0 comments on commit 644ff64

Please sign in to comment.