This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Copyright (c) 2025 Sanel Sabani | |
All rights reserved. | |
This work, and any and all contributions, participation, code, documentation, artwork, or other materials by SaaSCh, are licensed under a proprietary license. | |
No part of this work may be used, copied, reproduced, modified, merged, published, distributed, sublicensed, or sold in any form or by any means, in whole or in part, without the prior explicit written permission of the copyright holder and payment of the required license fee. | |
To seek permission or inquire about licensing terms and fees, contact: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "aws_ecs_service" "demo_app_service" { | |
name = "nina-service" | |
cluster = aws_ecs_cluster.this.id | |
task_definition = aws_ecs_task_definition.this.arn | |
launch_type = "FARGATE" | |
desired_count = 1 # só precisamos de 1, mas em caso de 3, em caso de queda de alguma tarefa, outra ainda estará executando | |
# cadastro no target group do load balancer | |
load_balancer { | |
target_group_arn = aws_lb_target_group.this.arn |