Hi everyone, do you know if there's any issue with...
# help
s
Hi everyone, do you know if there's any issue with calculating the price on ECS Fargate? We're running the service creation module ( ECS task + ECS service + ECR + CW logs). Infracost shows the costs of the Log Group and ECR as well:
Copy code
module.ame-award-api-ecs.aws_cloudwatch_log_group.log_group_create[0]                                                              
 ├─ Data ingested                                                           Monthly cost depends on usage: $0.50 per GB             
 ├─ Archival Storage                                                        Monthly cost depends on usage: $0.03 per GB             
 └─ Insights queries data scanned                                           Monthly cost depends on usage: $0.005 per GB            
                                                                                                                                    
 module.ame-award-api-ecs.aws_ecr_repository.create_ecr[0]                                                                          
 └─ Storage                                                                 Monthly cost depends on usage: $0.10 per GB
But it doesn't provide cost information for the service or task:
Copy code
2024-05-06T11:34:59-03:00 DBG Skipping free resource module.ame-award-api-ecs.aws_ecs_service.ecs_service_create[0] 
2024-05-06T11:34:59-03:00 DBG Skipping free resource module.ame-award-api-ecs.aws_ecs_task_definition.task_definitions_create[0]
m
Hi @stocky-businessperson-50900 yes we investigated this issue last week and confirmed it as a bug. I’ll point you to a github issue once I create it later. You can follow that to get updates about resolution.
Hi @stocky-businessperson-50900 please follow this issue https://github.com/infracost/infracost/issues/3064 for updates
s
Hi @mysterious-teacher-68276. Thank for updating me. Just to give your some more information, I'm using a private ECS module that I've written some time ago and it doesn't have
aws_ecs_task_set
. These are the resources: • aws_cloudwatch_log_group • aws_ecs_service • aws_ecs_task_definition (both data and resource) • aws_ecr_repository I've tried both and got the same result:
Copy code
resource "aws_ecs_service" "ecs_service_create" {
  task_definition      = data.aws_ecs_task_definition.get_latest_task_version.arn
Copy code
resource "aws_ecs_service" "ecs_service_create" {
  task_definition      = aws_ecs_task_definition.task_definitions_create.family
If you need some more information just let me know. Thank you!