x23.ai

alpha

#464: Feat(infra): downsizes ecs resources

4 files changed

53 additions

585 deletions

2 commits

github.com

TL;DR:

The pull request involves restructuring and optimization of the passport-scorer repository, including addition and removal of tags to AWS resources, creation and deletion of services, and changes in configurations. Significant changes include the creation of a new AWS Fargate service and an AWS EC2 Security Group, removal of AWS ECS Fargate Service and AWS Application Load Balancer for flower-service, and changes in tag keys and resource allocations.

The pull request primarily focuses on the restructuring and optimization of the passport-scorer repository. It includes the addition of tags to various AWS resources, removal of certain services, and the creation of new services and resources.

  • Tags were added to the AWS Application Load Balancer (ALB), HTTP and HTTPS listeners for the scorer-service, and the AWS CloudWatch LogGroup for the scorer-service and scorer-worker.

  • The AWS ECS Fargate Service for the scorer-bkgrnd-worker-registry, AWS Application Auto Scaling Target for the scorer-worker1-autoscaling-target, and AWS Application Auto Scaling Policy for the scorer-worker1-autoscaling-policy were removed.

  • A new AWS Fargate service named "scorer-bkgrnd-worker-passport" was created with specific configurations. An AWS Application Auto Scaling target and policy named "scorer-worker2-autoscaling-target" and "scorer-worker2-autoscaling-policy" respectively were also created with specific configurations.

  • An SSL certificate for a domain named "flower" was generated using AWS Certificate Manager (ACM) and validated using AWS ACM Certificate Validation. A Route 53 record was created for domain validation of the SSL certificate.

  • A new security group for the Application Load Balancer (ALB) of the "flower" service was created with specific ingress and egress rules.

  • The creation of an AWS Application Load Balancer (ALB) for the flower-service, HTTP listener, target group, HTTPS listener, Route53 record, and AWS Fargate service for the flower-service were removed.

  • A new AWS EC2 Security Group named scorer-run-migrations-task was created. The tag key was changed from Name to name for the EC2 instances Web and redashinstance. A name tag was added to the redash-service ALB.

  • Tags were added to the aws.alb.LoadBalancer for scorer-service and redash-service. The memory and CPU for scorerServiceDefault and scorerServiceRegistry were increased.

  • The entire code block related to celery1, celery2, and flower services, including their respective AWS resources, was removed. The tag key was changed from Name to name for aws.ec2.Instance resources Web and redashinstance.

Merged 13 days ago

Last updated 04/12 00:17