magnificent-musician-91472
07/20/2023, 4:57 PMred-toothbrush-65619
07/25/2023, 8:02 AMstraight-cat-63864
07/26/2023, 4:33 PMorange-midnight-75948
07/31/2023, 9:16 AMNo such file or directory output.json Try adding a config-file to configure how Infracost should run. See <https://infracost.io/config-file> for details and examples.
and Diff baseline error: No such file or directory output.json Try adding a config-file to configure how Infracost should run. See <https://infracost.io/config-file> for details and examples.
and I can see Monthly cost will not change
. I tried to make a config-file but it seems to not work. Do you have a basic config-file to add to my repo?acoustic-actor-19289
08/01/2023, 5:13 AMwarning: Could not find remote branch to clone.
fatal: Remote branch not found in upstream origin
When i echo CI_MERGE_REQUEST_TARGET_BRANCH_NAME
i m not getting any value $ echo CI_MERGE_REQUEST_TARGET_BRANCH_NAME=${CI_MERGE_REQUEST_TARGET_BRANCH_NAME}
CI_MERGE_REQUEST_TARGET_BRANCH_NAME=
creamy-airplane-42387
08/07/2023, 4:28 PMancient-jewelry-73631
08/07/2023, 4:56 PMaws:autoscaling:asg
namespace doesnāt seem to help:
{
namespace = "aws:autoscaling:asg",
name = "MaxSize",
value = var.autoscaling_max_size,
resource = ""
},
famous-eve-48967
08/13/2023, 5:42 PMmammoth-camera-93119
08/14/2023, 2:52 PMwonderful-lizard-93382
08/17/2023, 5:56 AMconfig
feature to get a single comment for different environments of the same terraform folder (feeding different .tfvar files) on CircleCI.
I followed docs https://www.infracost.io/docs/features/config_file/ and https://github.com/infracost/infracost-circleci and have somewhat working comment posted in PR.
But this comment consists of duplicate pairs of my āprojectsā. I suspect this is because my baseline āprojectā has different path where it was estimated? Would appreciate any advise on how to make this look properly, i.e merged and get a proper diff? Thanks in advance š¤famous-eve-48967
08/17/2023, 3:20 PMinfracost diff --path=. --format=json --compare-to=infracost-base.json --out-file=infracost.json
where infracost-base.json
is from production/base
branch and infracost.json
is from the current
branch to be merged to production
branch.wooden-notebook-80950
08/23/2023, 7:45 PMsteep-rain-99291
08/23/2023, 8:59 PMgorgeous-cpu-18947
08/24/2023, 6:39 AMstrong-rose-10127
09/05/2023, 11:59 AMgorgeous-twilight-75626
09/05/2023, 3:45 PMus-east-2
and not the provider I created for the Infracost module. It seems that the provider variable for the module isn't working properly. I'm following this documentation: https://github.com/infracost/cross-account-link/blob/master/README.md and here is my code:
# Do not change this, this is the only region that the AWS CUR API supports, this should not matter for
# you as your bucket can live in another region (described above).
provider "aws" {
alias = "us_east_1"
region = "us-east-1"
}
module "infracost" {
source = "<http://github.com/infracost/cross-account-link|github.com/infracost/cross-account-link>"
infracost_external_id = "INFRACOST_ORGANIZATION_ID"
# add a provider for region `us-east-1` and pass this in using aws.us_east_1 alias.
providers = {
aws.us_east_1 = aws.us_east_1
}
}
output "infracost_cross_account_role_arn" {
value = module.infracost.role_arn
}
output "infracost_cur_bucket_arn" {
value = module.infracost.bucket_arn
}
But these are the outputs I'm getting from Terraform (I've replaced the account number with XXX):
Terraform will perform the following actions:
# module.infracost.aws_cur_report_definition.costand_usage_report will be created
+ resource "aws_cur_report_definition" "costand_usage_report" {
+ additional_schema_elements = [
+ "RESOURCES",
]
+ arn = (known after apply)
+ compression = "GZIP"
+ format = "textORcsv"
+ id = (known after apply)
+ refresh_closed_reports = true
+ report_name = "InfracostReportXXXXXXXXXXXXXX"
+ report_versioning = "OVERWRITE_REPORT"
+ s3_bucket = "infracost-cur-XXXXXXXXXXXXXXXXX"
+ s3_prefix = "daily-v1"
+ s3_region = "us-east-2"
+ time_unit = "DAILY"
}
# module.infracost.aws_s3_bucket_notification.sns_topic will be created
+ resource "aws_s3_bucket_notification" "sns_topic" {
+ bucket = "infracost-cur-XXXXXXXXXXXXXXXXXX"
+ eventbridge = false
+ id = (known after apply)
+ topic {
+ events = [
+ "s3:ObjectCreated:*",
]
+ filter_suffix = "Manifest.json"
+ id = (known after apply)
+ topic_arn = "arn:aws:sns:us-east-2:XXXXXXXXXXX:cur-uploaded"
}
}
Any help is appreciated! Thank you!powerful-kangaroo-4585
09/11/2023, 2:49 PMversion: "0.1"
currency: "GBP"
powerful-kangaroo-4585
09/11/2023, 2:49 PMsome-island-27936
09/13/2023, 4:31 PMresource "azurerm_linux_virtual_machine" "my_vm" {
name = "basic_a2"
resource_group_name = "fake_resource_group"
location = "eastus"
size = "Standard_D2as_v4"
admin_username = "fakeuser"
admin_password = "fakepass"
priority = "Spot"
eviction_policy = "Deallocate"
output :
"costComponents":[
{
"name":"Instance usage (Linux, pay as you go, Standard_D2as_v4)",
"unit":"hours",
"hourlyQuantity":"1",
"monthlyQuantity":"730",
"price":"0.096",
"hourlyCost":"0.096",
"monthlyCost":"70.08"
}
enough-scooter-95197
09/15/2023, 6:30 PMattributeFilters
property map back to Terraform resource properties? or is there some magic/translation in the CLI that looks up the Terraform properties from the API?acceptable-tent-42612
09/18/2023, 6:32 PMinfracost comment
for Azure DevOps integration supports the slack message format in some way?
The issue I'm facing is:
⢠Azure DevOps has a webhook to a slack channel and all PR comments are posted to a slack channel.
⢠Problem: The comment posted in Azure DevOps is in table format. Slack does not support the table format, which shows the example output.
For example:
Comment:
[//]: <>
<> Infracost estimate: <b>monthly cost will increase by $1</b></p>
<table>
<thead>
<td>Project</td>
<td>Cost change</td>
<td>New monthly cost</td>
</thead>
...
Is there a way I can still leverage infracost comment az-repo
and post a comment with slack-message format?miniature-answer-53816
09/19/2023, 1:23 AMmammoth-petabyte-35946
09/20/2023, 3:34 AMVM-VM egress
, VM-Google Service
, and Internet Egress
.faint-application-33716
09/20/2023, 11:17 AMfull-planet-90153
09/20/2023, 7:13 PMambitious-spring-76637
09/25/2023, 11:05 AMred-toothbrush-65619
09/26/2023, 6:25 AMmammoth-petabyte-35946
09/26/2023, 2:02 PMorange-parrot-73591
09/26/2023, 9:01 PMearly-dress-33381
09/27/2023, 3:31 PM