Skip to content

Commit

Permalink
Update changes from main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
owl-king committed Oct 13, 2024
2 parents c452909 + c1a17a7 commit 126dc38
Show file tree
Hide file tree
Showing 21 changed files with 96 additions and 9,302 deletions.
2 changes: 1 addition & 1 deletion indexer/lambda.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ resource "aws_lambda_function" "main" {
function_name = "${each.key}_lambda_function"
role = aws_iam_role.lambda_services[each.key].arn
architectures = [lower(var.lambda_cpu_architecture)]
timeout = 120
timeout = 300

environment {
variables = merge(
Expand Down
18 changes: 15 additions & 3 deletions indexer/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ locals {
should_deploy_in_rds_subnet : true,
ecs_environment_variables : flatten(
[
{
name : "AWS_REGION",
value : var.region,
},
{
name : "PG_POOL_MAX",
value : "30"
Expand All @@ -51,7 +55,7 @@ locals {
),
},
"${local.service_names["comlink"]}" : {
ecs_desired_count : 5,
ecs_desired_count : var.comlink_ecs_desired_count,
task_definition_memory : 4096,
task_definition_cpu : 2048,
is_public_facing : true,
Expand Down Expand Up @@ -97,7 +101,7 @@ locals {
),
},
"${local.service_names["socks"]}" : {
ecs_desired_count : 5,
ecs_desired_count : var.socks_ecs_desired_count,
task_definition_memory : 8192,
task_definition_cpu : 4096,
is_public_facing : true,
Expand All @@ -109,6 +113,10 @@ locals {
should_deploy_in_rds_subnet : false,
ecs_environment_variables : flatten(
[
{
name : "AWS_REGION",
value : var.region,
},
{
name : "COMLINK_URL",
value : aws_lb.public.dns_name,
Expand Down Expand Up @@ -195,7 +203,7 @@ locals {
),
},
"${local.service_names["vulcan"]}" : {
ecs_desired_count : 5,
ecs_desired_count : var.vulcan_ecs_desired_count,
task_definition_memory : 8192,
task_definition_cpu : 4096,
is_public_facing : false,
Expand All @@ -207,6 +215,10 @@ locals {
should_deploy_in_rds_subnet : false,
ecs_environment_variables : flatten(
[
{
name : "AWS_REGION",
value : var.region,
},
{
name : "PG_POOL_MAX",
value : "2"
Expand Down
3 changes: 2 additions & 1 deletion indexer/msk.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ resource "aws_msk_configuration" "main" {
message.max.bytes=4194304
unclean.leader.election.enable=true
zookeeper.session.timeout.ms=6000
replica.selector.class = org.apache.kafka.common.replica.RackAwareReplicaSelector
log.retention.hours = 120
PROPERTIES

lifecycle {
Expand Down Expand Up @@ -57,4 +59,3 @@ resource "aws_msk_cluster" "main" {
revision = aws_msk_configuration.main.latest_revision
}
}

2 changes: 2 additions & 0 deletions indexer/rds.tf
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ resource "aws_db_instance" "read_replica" {
# be specified for a replica, and will match the properties on the source db.
vpc_security_group_ids = [aws_security_group.rds.id]
parameter_group_name = aws_db_parameter_group.main.name
allocated_storage = var.rds_read_replica_db_allocated_storage_gb
publicly_accessible = false
# Set to true if any planned changes need to be applied before the next maintenance window.
apply_immediately = false
Expand All @@ -257,6 +258,7 @@ resource "aws_db_instance" "read_replica_2" {
# be specified for a replica, and will match the properties on the source db.
vpc_security_group_ids = [aws_security_group.rds.id]
parameter_group_name = aws_db_parameter_group.main.name
allocated_storage = var.rds_read_replica_db_allocated_storage_gb
publicly_accessible = false
# Set to true if any planned changes need to be applied before the next maintenance window.
apply_immediately = false
Expand Down
25 changes: 25 additions & 0 deletions indexer/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,13 @@ variable "rds_db_instance_class" {
variable "rds_db_allocated_storage_gb" {
type = number
description = "Storage allocated to the Postgres RDS DB in GB"
default = 1000
}

variable "rds_read_replica_db_allocated_storage_gb" {
type = number
description = "Storage allocated to the Postgres RDS read replica DBs in GB"
default = 1000
}

variable "elasticache_redis_num_cache_clusters" {
Expand Down Expand Up @@ -577,3 +584,21 @@ variable "create_backup_full_node" {
type = bool
default = false
}

variable "vulcan_ecs_desired_count" {
type = number
description = "Number of desired vulcan instances."
default = 5
}

variable "comlink_ecs_desired_count" {
type = number
description = "Number of desired comlinnk instances."
default = 5
}

variable "socks_ecs_desired_count" {
type = number
description = "Number of desired socks instances."
default = 5
}
4 changes: 0 additions & 4 deletions indexer_dashboards/indexer_dashboards.tf

This file was deleted.

6 changes: 0 additions & 6 deletions indexer_dashboards/providers.tf

This file was deleted.

51 changes: 0 additions & 51 deletions indexer_dashboards/terraform.tfvars

This file was deleted.

40 changes: 0 additions & 40 deletions indexer_dashboards/variables.tf

This file was deleted.

18 changes: 0 additions & 18 deletions indexer_dashboards/versions.tf

This file was deleted.

Loading

0 comments on commit 126dc38

Please sign in to comment.