<@U0484LVU04Q> I saw your email about the <usage p...
# help
w
@gifted-art-36882 I saw your email about the usage profiles feature of the usage file, but unfortunately I can’t reproduce the issue, if you copy paste the main.tf and the infracost-usage.yml files on your laptop, does the breakdown command work as expected with v0.10.12 of the CLI?
Copy code
$ infracost --version
Infracost v0.10.12

---

$ cat <http://main.tf|main.tf>
provider "aws" {
  region                      = "us-east-1"
  skip_credentials_validation = true
  skip_requesting_account_id  = true
  access_key                  = "mock_access_key"
  secret_key                  = "mock_secret_key"
}

resource "aws_lambda_function" "hello_world" {
  function_name = "hello_world"
  role          = "arn:aws:lambda:us-east-1:account-id:resource-id"
  handler       = "exports.test"
  runtime       = "nodejs12.x"
  memory_size   = 1024
}

---

$ cat infracost-usage.yml
version: 0.1
resource_type_default_usage:
  aws_lambda_function:
    monthly_requests: 100000 # Monthly requests to the Lambda function.
    request_duration_ms: 1000 # Average duration of each request in milliseconds.

---

$ infracost breakdown --path . --usage-file infracost-usage.yml

 Name                             Monthly Qty  Unit         Monthly Cost

 aws_lambda_function.hello_world
 ├─ Requests                              0.1  1M requests         $0.02
 └─ Duration                          100,000  GB-seconds          $1.67

 OVERALL TOTAL                                                     $1.69