Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

512
Views
AWS CDK y creación de ECS/Fargate Service en ALB existente. ¿Usar un oyente existente?

Entonces, me he estado tirando de los pelos con este tema.

Estoy tratando de crear un nuevo servicio basado en un ALB existente y un oyente que usa TLS/443

Estoy usando el CDK Python.

estoy haciendo un

 service = ecs_patterns.ApplicationLoadBalancedFargateService( self, "a-service", ... load_balancer=existing_lb )

poniendo todos mis parámetros... Cada vez que hago esto, intenta crear un nuevo oyente en el puerto 80. Incluso si trato de seleccionar mi oyente existente que está en 443, se produce un error y dice que el oyente existente existe y se sale con error.

¿Alguna idea sobre cómo hacer esto contra un oyente SSL existente?

over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

Si está hablando de un recurso existente dentro de AWS, debe establecer una variable como el ARN de escucha y luego usar ApplicationListenerAttributes , entonces debería poder usar el balanceador de carga como lo haría si estuviera creando uno nuevo en CDK.

over 4 years ago · Santiago Trujillo Report

0

Revisé https://docs.aws.amazon.com/cdk/api/latest/python/aws_cdk.aws_ecs_patterns/ApplicationLoadBalancedFargateService.html

No hay nada allí que señalaría a un oyente existente.

hay un oyente, pero luego debe especificar el dominio y un montón de otras cosas que no son relevantes...

y cuando puse el oyente, dijo que el puerto estaba ocupado...

Así que supongo que no hay forma de crear un Servicio Fargate con un ALB existente y un oyente existente

over 4 years ago · Santiago Trujillo Report

0

Es posible que no pueda hacerlo con el paquete de patrones ECS, pero debería poder hacerlo con los paquetes ECS y Elastic Load Balancer V2. Creo que debería poder importar el oyente o un grupo objetivo y luego agregar su servicio a eso. Consulte https://docs.aws.amazon.com/cdk/api/latest/python/aws_cdk.aws_elasticloadbalancingv2/ApplicationListener.html#aws_cdk.aws_elasticloadbalancingv2.ApplicationListener.from_application_listener_attributes

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!