Hi <!channel>, I'm having a problem trying to gene...
# help
a
Hi <!channel>, I'm having a problem trying to generate changes in my infrastructure with Terraform. I'm using the CI/CD integration in GitHub Actions when I create a PR, I first checkout the target branch, generate the baseline with the command: infracost breakdown --format=json \ --out-file=${{ env.INFRACOST_BASE_FILEPATH }} \ --config-file=${{ env.INFRACOST_CONFIG_FILEPATH }} Then I checkout to the source branch and generate the report with the command: infracost diff --format=json \ --compare-to=${{ env.INFRACOST_BASE_FILEPATH }} \ --out-file=${{ env.INFRACOST_DIFF_FILEPATH }} \ --config-file=${{ env.INFRACOST_CONFIG_FILEPATH }} However, the capacity increase attempts are not being detected (CPU and memory) for the ECS in AWS that are performed in the env.dev.tfvars files and in the container_definition as seen in the attached image, should I do something additional so that these changes are detected?
w
When you run
infracost breakdown --config-file your-infracost.yml
in that repo’s root folder on your laptop, do you see the ECS resource and costs shown correctly?
a
No, I see it the same as in the execution of GH Actions
In fact, I tried it with the Terraform plan and it didn't work either, even though the changes are observed in the Terraform plan.
w
hmm see if you’re having one of these issues - I’ve not looked at how we process ECS in a long time
a
I was reviewing the issues you shared with me, and I don't see any of them using a structure similar to the one I have in my project. However, I see that in some of them they do manage to obtain what is seen in the images, and that they are detecting changes in the memory and CPU of the ECS.
I am using the infracost-usage.yml file that I downloaded from the following repository https://github.com/infracost/infracost/blob/master/infracost-usage-defaults.small.yml , inside that file I don't see any field related to aws_ecs , could this be the problem? and if so, how can I configure those fields so that the increase in CPU and memory of an ECS instance is detected ??
m
you don’t need to notify the entire
@channel
to look into your issue, this is wasteful
👍 2
a
Ok, sorry