Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 4, 2025
1 parent 700982b commit f7597ae
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 18 deletions.
2 changes: 1 addition & 1 deletion scripts/aws/infra/_envcommon/alb.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ inputs = {
health_check_path = "/api/v2/system/heartbeat/" #TODOTM
alb_name = format("%s-%s-%s", local.application, local.environment, "alb")
target_group_name = format("%s-%s-%s", local.application, local.environment, "tg")
}
}
4 changes: 2 additions & 2 deletions scripts/aws/infra/_envcommon/ecs.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ inputs = {
container_capacity = {
cpu = 2048
memory_mb = 4096
}
}

## Scaling Policies enabled for cpu,memory in addition to ALB Count.
scale_by_cpu = {
Expand All @@ -85,4 +85,4 @@ inputs = {
scale_in_cooldown = 30
scale_out_cooldown = 30
}
}
}
2 changes: 1 addition & 1 deletion scripts/aws/infra/_envcommon/extras.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ locals {

inputs = {
deployment_environment = local.environment_vars.locals.environment
}
}
2 changes: 1 addition & 1 deletion scripts/aws/infra/_envcommon/rds.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,4 @@ inputs = {
}

network_type = "IPV4"
}
}
2 changes: 1 addition & 1 deletion scripts/aws/infra/_envcommon/vpc.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ inputs = {
}

deployment_environment = local.environment_vars.locals.environment
}
}
2 changes: 1 addition & 1 deletion scripts/aws/infra/staging/deployment_env.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ locals {
IaC_Management = "Terraform/Terragrunt"
cost_center = "False"
version = "4.8.2"
}
}
2 changes: 1 addition & 1 deletion scripts/aws/infra/staging/non-purgeable/alb/terragrunt.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ inputs = {

# TLS and Certificate Configuration
acm_tls_cert_backend_arn = get_env("ACM_TLS_CERT_BACKEND_ARN", "arn:aws:acm:us-east-1:670261699094:certificate/1d74321b-1e5b-4e31-b97a-580deb39c539")
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ inputs = {
valueFrom = get_env("NEW_RELIC_LICENSE_KEY", "newrelicliscencekey")
}
]
}
}
6 changes: 3 additions & 3 deletions scripts/aws/infra/staging/non-purgeable/rds/terragrunt.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ inputs = {
vpc_id = dependency.vpc.outputs.vpc_id
subnet_ids = dependency.vpc.outputs.private_subnets

## RDS Module inputs
## RDS Module inputs
serverless_capacity = {
minimum = 4 # Lowest possible APU for Aurora Serverless
maximum = 8 # Max APU to keep cost low for Stag
}

## RDS Backup/Snapshot Config
backup = {
retention_days = 7
Expand All @@ -37,4 +37,4 @@ inputs = {
# RDS Dev Deployment only.
public_access = true
deletion_protection = true
}
}
6 changes: 3 additions & 3 deletions scripts/aws/infra/staging/purgeable/ecs/terragrunt.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,14 @@ inputs = {
min_healthy_pct = 25
max_pct = 200
}

## Scaling Policy Target Values
scaling_target_values = {
container_min_count = 2
container_max_count = 3
}

# Merge non-sensetive together
# Merge non-sensetive together
container_envvars = merge(
dependency.rds.outputs.database_config_as_ecs_inputs,
{
Expand Down Expand Up @@ -142,4 +142,4 @@ inputs = {
# EXPORT_TOOL_S3_URL = get_env("EXPORT_TOOL_S3_URL", "https://foorawdataapi.s3.amazonaws.com")
# ENABLE_EXPORT_TOOL = get_env("ENABLE_EXPORT_TOOL", "1")
})
}
}
3 changes: 1 addition & 2 deletions scripts/aws/infra/terraform-aws-extras/secrets.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,5 @@ resource "aws_secretsmanager_secret_version" "tm_secret_version" {
}

secret_id = aws_secretsmanager_secret.tm_secrets[each.key].id
secret_string = each.value.valueFrom
secret_string = each.value.valueFrom
}

2 changes: 1 addition & 1 deletion scripts/aws/infra/terraform-aws-extras/task-role.tf
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,4 @@ data "aws_iam_policy_document" "ecs_policy" {
]
}

}
}

0 comments on commit f7597ae

Please sign in to comment.