Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infracost usage file error #2750

Open
matthieupetite opened this issue Nov 16, 2023 · 2 comments
Open

Infracost usage file error #2750

matthieupetite opened this issue Nov 16, 2023 · 2 comments

Comments

@matthieupetite
Copy link
Contributor

matthieupetite commented Nov 16, 2023

Hello,

I don't really know if it's a bug or not but when I sync the ressource usage file I am facing some issues when starting with an empty file which looks like this:

# You can use this file to define resource usage estimates for Infracost to use when calculating
# the cost of usage-based resource, such as AWS S3 or Lambda.
# `infracost breakdown --usage-file infracost-usage.yml [other flags]`
# See https://infracost.io/usage-file/ for docs
version: 0.1
# resource_type_default_usage:
# resource_usage:

I launched the sync usage command and here is the log file i had:

Syncing usage file for mkp-hpr mkp-rec2
Evaluating Terraform directory at /wspace/az-tf/infra/zones/azure/mkp-rec2
Project: /infra-cloud/april-gitops-infra-mkp/zones/azure/mkp-rec2

Errors:
  Error generating usage file:
    Error loading usage file:
      Error loading usage file:
        Error parsing usage YAML:
          yaml:
            line 4:
              did not find expected key

 OVERALL TOTAL       $0.00 
──────────────────────────────────
No cloud resources were detected

My usage file is the following

# You can use this file to define resource usage estimates for Infracost to use when calculating
# the cost of usage-based resource, such as AWS S3 or Lambda.
# `infracost breakdown --usage-file infracost-usage.yml [other flags]`
# See https://infracost.io/usage-file/ for docs
version: 0.1
# resource_type_default_usage:
  ##
  ## The following usage values apply to each resource of the given type, which is useful when you want to define defaults.
  ## All values are commented-out, you can uncomment resource types and customize as needed.
  ##
  # azurerm_application_gateway:
    # monthly_data_processed_gb: 0 #  Monthly data processed by the Application Gateway in GB.
    # monthly_v2_capacity_units: 0 # Number capacity(for v2) units gateway.
  # azurerm_application_insights:
    # monthly_data_ingested_gb: 0.0 # Monthly amount of data ingested in GB.
  # azurerm_automation_account:
    # non_azure_config_node_count: 0 # Number of non-Azure configuration nodes.
    # monthly_watcher_hrs: 0 # Monthly number of watcher hours.
    # monthly_job_run_mins: 0 # Monthly number of job run minutes.
  # azurerm_automation_job_schedule:
    # monthly_job_run_mins: 0 # Monthly number of job run minutes.
  # azurerm_key_vault_certificate:
    # monthly_certificate_renewal_requests: 0 # Monthly number of certificate renewal requests.
    # monthly_certificate_other_operations: 0 # Monthly number of non-renewal certificate operations.
  # azurerm_log_analytics_workspace:
    # monthly_log_data_ingestion_gb: 0.0 # Monthly log data ingested by the workspace in GB (only used for Pay-as-you-go workspaces).
    # monthly_additional_log_data_retention_gb: 0.0 # Monthly additional GB of data retained past the free allowance.
    # monthly_log_data_export_gb: 0.0 # Monthly data in GB exported from the workspace.
    # monthly_sentinel_data_ingestion_gb: 0.0 # Monthly data in GB exported from Microsoft Sentinel, this only applies when it is enabled.
    # monthly_basic_log_data_ingestion_gb: 0.0 # Monthly data ingested by the workspace to basic tables in GB
    # monthly_basic_log_search_gb: 0.0 # Monthly basic log data queried in GB
    # monthly_archive_data_gb: 0 # Monthly archived data in GB
    # monthly_archive_data_restored_gb: 0 # Monthly data restored from archive in GB
    # monthly_archive_data_searched_gb: 0 # Monthly data searched in archive with a Search Job, in GB
    # monthly_archived_data_gb: 0.0
    # monthly_archived_data_restored_gb: 0.0
    # monthly_archived_data_searched_gb: 0.0
  # azurerm_monitor_action_group:
    # monthly_notifications: 0
  # azurerm_monitor_diagnostic_setting:
    # monthly_platform_log_gb: 0
  # azurerm_mssql_database:
    # monthly_vcore_hours: 0 # Monthly number of used vCore-hours for serverless compute.
    # long_term_retention_storage_gb: 0 # Number of GBs used by long-term retention backup storage.
    # backup_storage_gb: 0 # Number of GBs used by Point-In-Time Restore (PITR) backup storage.
    # extra_data_storage_gb: 0.0 # Override number of GBs used by extra data storage.
  # azurerm_private_dns_a_record:
    # monthly_queries: 0 # Monthly number of DNS queries
  # azurerm_private_endpoint:
    # monthly_inbound_data_processed_gb: 0 # Monthly inbound data processed in GB.
    # monthly_outbound_data_processed_gb: 0 # Monthly outbound data processed in GB.
  # azurerm_recovery_services_vault:
    # azurerm_backup_protected_vm.my_vm:
      # disk_utilization_gb: 0 # Total size in GB of the data that will be backed up into the recovery service vault. Defaults to the entire storage capacity of the VM.
      # additional_backup_retention_gb: 0 # Total size in GB of the additional data stored by this VM because of retention rules.
  # azurerm_storage_account:
    # data_at_rest_storage_gb: 0.0 # Total size of Data at Rest in GB (File storage).
    # early_deletion_gb: 0.0 # Total size of Early deletion data in GB.
    # snapshots_storage_gb: 0.0 # Total size of Snapshots in GB (File storage).
    # metadata_at_rest_storage_gb: 0.0 # Total size of Metadata in GB (File storage).
    # storage_gb: 0.0 # Total size of storage in GB.
    # monthly_iterative_write_operations: 0 # Monthly number of Iterative write operations (GPv2).
    # monthly_write_operations: 0 # Monthly number of Write operations.
    # monthly_list_and_create_container_operations: 0 # Monthly number of List and Create Container operations.
    # monthly_iterative_read_operations: 0 # Monthly number of Iterative read operations (GPv2).
    # monthly_read_operations: 0 # Monthly number of Read operations.
    # monthly_other_operations: 0 # Monthly number of All other operations.
    # monthly_data_retrieval_gb: 0.0 # Monthly number of data retrieval in GB.
    # monthly_data_write_gb: 0.0 # Monthly number of data write in GB.
    # blob_index_tags: 0 # Total number of Blob indexes.
  # azurerm_storage_share:
    # storage_gb: 0.0 # Total size of storage in GB. Overrides any provided `quota`.
    # monthly_write_operations: 0 # Monthly number of Write operations.
    # monthly_list_operations: 0 # Monthly number of List and Create Container operations.
    # monthly_read_operations: 0 # Monthly number of Read operations.
    # monthly_other_operations: 0 # Monthly number of All other operations.
    # monthly_data_retrieval_gb: 0.0 # Monthly number of data retrieval in GB.
    # snapshots_storage_gb: 0.0 # Total size of Snapshots in GB
    # metadata_at_rest_storage_gb: 0.0 # Total size of Metadata in GB
# resource_usage:
  ##
  ## The following usage values apply to individual resources and override any value defined in the resource_type_default_usage section.
  ## All values are commented-out, you can uncomment resources and customize as needed.
  ##
  # module.application_gateway.azurerm_key_vault_certificate.app_gateway_certificates["wildcardaprilonfr2023GO2CLOUD"]:
    # monthly_certificate_renewal_requests: 0 # Monthly number of certificate renewal requests.
    # monthly_certificate_other_operations: 0 # Monthly number of non-renewal certificate operations.
  # module.application_gateway.azurerm_key_vault_certificate.app_gateway_certificates["wildcarddigitalinternecloudapril"]:
    # monthly_certificate_renewal_requests: 0 # Monthly number of certificate renewal requests.
    # monthly_certificate_other_operations: 0 # Monthly number of non-renewal certificate operations.
  # module.application_gateway.azurerm_key_vault_certificate.app_gateway_certificates["wildcardmonprojetaprilfr2023GO2CLOUD"]:
    # monthly_certificate_renewal_requests: 0 # Monthly number of certificate renewal requests.
    # monthly_certificate_other_operations: 0 # Monthly number of non-renewal certificate operations.
  # module.application_gateway.azurerm_private_dns_a_record.private_dns_zone_record_application_digital["asp-conn"]:
    # monthly_queries: 0 # Monthly number of DNS queries
  # module.application_gateway.azurerm_private_dns_a_record.private_dns_zone_record_application_digital["authentication-srv"]:
    # monthly_queries: 0 # Monthly number of DNS queries
  # module.application_gateway.azurerm_private_dns_a_record.private_dns_zone_record_application_digital["backend-aon"]:
    # monthly_queries: 0 # Monthly number of DNS queries
  ? # module.application_gateway.azurerm_private_dns_a_record.private_dns_zone_record_application_digital["backoffice-gateway-srv"]
  : # monthly_queries: 0 # Monthly number of DNS queries
  # module.application_gateway.azurerm_private_dns_a_record.private_dns_zone_record_application_digital["bolegacy"]:
    # monthly_queries: 0 # Monthly number of DNS queries
  # module.application_gateway.azurerm_private_dns_a_record.private_dns_zone_record_application_digital["bomiddle"]:
    # monthly_queries: 0 # Monthly number of DNS queries
  # module.application_gateway.azurerm_private_dns_a_record.private_dns_zone_record_application_digital["broker-srv"]:
    # monthly_queries: 0 # Monthly number of DNS queries
  # module.application_gateway.azurerm_private_dns_a_record.private_dns_zone_record_application_digital["business-gateway-srv"]:
    # monthly_queries: 0 # Monthly number of DNS queries
  # module.application_gateway.azurerm_private_dns_a_record.private_dns_zone_record_application_digital["callback-srv"]:
    # monthly_queries: 0 # Monthly number of DNS queries
  # module.application_gateway.azurerm_private_dns_a_record.private_dns_zone_record_application_digital["catalog-srv"]:
    # monthly_queries: 0 # Monthly number of DNS queries
  # module.application_gateway.azurerm_private_dns_a_record.private_dns_zone_record_application_digital["cloud-admin-srv"]:
    # monthly_queries: 0 # Monthly number of DNS queries
  # module.application_gateway.azurerm_private_dns_a_record.private_dns_zone_record_application_digital["cloud-gateway-srv"]:
    # monthly_queries: 0 # Monthly number of DNS queries
  # module.application_gateway.azurerm_private_dns_a_record.private_dns_zone_record_application_digital["cloud-registry-srv"]:
    # monthly_queries: 0 # Monthly number of DNS queries
  ? # module.application_gateway.azurerm_private_dns_a_record.private_dns_zone_record_application_digital["commercial-opportunity-srv"]
  : # monthly_queries: 0 # Monthly number of DNS queries
  # module.application_gateway.azurerm_private_dns_a_record.private_dns_zone_record_application_digital["comparator-srv"]:
    # monthly_queries: 0 # Monthly number of DNS queries
  ? # module.application_gateway.azurerm_private_dns_a_record.private_dns_zone_record_application_digital["data-asset-management-srv"]
  : # monthly_queries: 0 # Monthly number of DNS queries
  # module.application_gateway.azurerm_private_dns_a_record.private_dns_zone_record_application_digital["data-events-srv"]:
    # monthly_queries: 0 # Monthly number of DNS queries
  # module.application_gateway.azurerm_private_dns_a_record.private_dns_zone_record_application_digital["editing-srv"]:
    # monthly_queries: 0 # Monthly number of DNS queries
  ? # module.application_gateway.azurerm_private_dns_a_record.private_dns_zone_record_application_digital["eselection-content-srv"]
  : # monthly_queries: 0 # Monthly number of DNS queries
  # module.application_gateway.azurerm_private_dns_a_record.private_dns_zone_record_application_digital["message-srv"]:
    # monthly_queries: 0 # Monthly number of DNS queries
  # module.application_gateway.azurerm_private_dns_a_record.private_dns_zone_record_application_digital["needs-srv"]:
    # monthly_queries: 0 # Monthly number of DNS queries
  # module.application_gateway.azurerm_private_dns_a_record.private_dns_zone_record_application_digital["orchestrator-srv"]:
    # monthly_queries: 0 # Monthly number of DNS queries
  # module.application_gateway.azurerm_private_dns_a_record.private_dns_zone_record_application_digital["order-repository-srv"]:
    # monthly_queries: 0 # Monthly number of DNS queries
  # module.application_gateway.azurerm_private_dns_a_record.private_dns_zone_record_application_digital["pega-conn"]:
    # monthly_queries: 0 # Monthly number of DNS queries
  # module.application_gateway.azurerm_private_dns_a_record.private_dns_zone_record_application_digital["post-subscription-srv"]:
    # monthly_queries: 0 # Monthly number of DNS queries
  # module.application_gateway.azurerm_private_dns_a_record.private_dns_zone_record_application_digital["rabbitmq"]:
    # monthly_queries: 0 # Monthly number of DNS queries
  # module.application_gateway.azurerm_private_dns_a_record.private_dns_zone_record_application_digital["signature-srv"]:
    # monthly_queries: 0 # Monthly number of DNS queries
  # module.application_gateway.azurerm_private_dns_a_record.private_dns_zone_record_application_digital["subscription-srv"]:
    # monthly_queries: 0 # Monthly number of DNS queries
  # module.rabbitmq.azurerm_storage_share.storage_share["rabbitmq-data"]:
    # storage_gb: 0.0 # Total size of storage in GB. Overrides any provided `quota`.
    # monthly_write_operations: 0 # Monthly number of Write operations.
    # monthly_list_operations: 0 # Monthly number of List and Create Container operations.
    # monthly_read_operations: 0 # Monthly number of Read operations.
    # monthly_other_operations: 0 # Monthly number of All other operations.
    # monthly_data_retrieval_gb: 0.0 # Monthly number of data retrieval in GB.
    # snapshots_storage_gb: 0.0 # Total size of Snapshots in GB
    # metadata_at_rest_storage_gb: 0.0 # Total size of Metadata in GB
  # module.rabbitmq.azurerm_storage_share.storage_share["rabbitmq-logs"]:
    # storage_gb: 0.0 # Total size of storage in GB. Overrides any provided `quota`.
    # monthly_write_operations: 0 # Monthly number of Write operations.
    # monthly_list_operations: 0 # Monthly number of List and Create Container operations.
    # monthly_read_operations: 0 # Monthly number of Read operations.
    # monthly_other_operations: 0 # Monthly number of All other operations.
    # monthly_data_retrieval_gb: 0.0 # Monthly number of data retrieval in GB.
    # snapshots_storage_gb: 0.0 # Total size of Snapshots in GB
    # metadata_at_rest_storage_gb: 0.0 # Total size of Metadata in GB
  # module.sqldatabases.azurerm_mssql_database.databases["orchestrator"]:
    # monthly_vcore_hours: 0 # Monthly number of used vCore-hours for serverless compute.
    # long_term_retention_storage_gb: 0 # Number of GBs used by long-term retention backup storage.
    # backup_storage_gb: 0 # Number of GBs used by Point-In-Time Restore (PITR) backup storage.
    # extra_data_storage_gb: 0.0 # Override number of GBs used by extra data storage.
  # module.sqldatabases.azurerm_mssql_database.databases["signature"]:
    # monthly_vcore_hours: 0 # Monthly number of used vCore-hours for serverless compute.
    # long_term_retention_storage_gb: 0 # Number of GBs used by long-term retention backup storage.
    # backup_storage_gb: 0 # Number of GBs used by Point-In-Time Restore (PITR) backup storage.
    # extra_data_storage_gb: 0.0 # Override number of GBs used by extra data storage.
  # module.storage_account_application.azurerm_monitor_diagnostic_setting.diagnostics_settings["applis"]:
    # monthly_platform_log_gb: 0
  # module.storage_account_application.azurerm_private_dns_a_record.private_dns_zone_record_fileshare_atehub_a["applis"]:
    # monthly_queries: 0 # Monthly number of DNS queries
  # module.storage_account_application.azurerm_private_endpoint.fileshare_private_endpoint["applis"]:
    # monthly_inbound_data_processed_gb: 0 # Monthly inbound data processed in GB.
    # monthly_outbound_data_processed_gb: 0 # Monthly outbound data processed in GB.
  # module.storage_account_application.azurerm_storage_account.storage_accounts["applis"]:
    # data_at_rest_storage_gb: 0.0 # Total size of Data at Rest in GB (File storage).
    # early_deletion_gb: 0.0 # Total size of Early deletion data in GB.
    # snapshots_storage_gb: 0.0 # Total size of Snapshots in GB (File storage).
    # metadata_at_rest_storage_gb: 0.0 # Total size of Metadata in GB (File storage).
    # storage_gb: 0.0 # Total size of storage in GB.
    # monthly_iterative_write_operations: 0 # Monthly number of Iterative write operations (GPv2).
    # monthly_write_operations: 0 # Monthly number of Write operations.
    # monthly_list_and_create_container_operations: 0 # Monthly number of List and Create Container operations.
    # monthly_iterative_read_operations: 0 # Monthly number of Iterative read operations (GPv2).
    # monthly_read_operations: 0 # Monthly number of Read operations.
    # monthly_other_operations: 0 # Monthly number of All other operations.
    # monthly_data_retrieval_gb: 0.0 # Monthly number of data retrieval in GB.
    # monthly_data_write_gb: 0.0 # Monthly number of data write in GB.
    # blob_index_tags: 0 # Total number of Blob indexes.
  # module.storage_account_application.azurerm_storage_share.fileshare["applis-aon-datas"]:
    # storage_gb: 0.0 # Total size of storage in GB. Overrides any provided `quota`.
    # monthly_write_operations: 0 # Monthly number of Write operations.
    # monthly_list_operations: 0 # Monthly number of List and Create Container operations.
    # monthly_read_operations: 0 # Monthly number of Read operations.
    # monthly_other_operations: 0 # Monthly number of All other operations.
    # monthly_data_retrieval_gb: 0.0 # Monthly number of data retrieval in GB.
    # snapshots_storage_gb: 0.0 # Total size of Snapshots in GB
    # metadata_at_rest_storage_gb: 0.0 # Total size of Metadata in GB
  # module.storage_account_application.azurerm_storage_share.fileshare["applis-dam-medias-priv"]:
    # storage_gb: 0.0 # Total size of storage in GB. Overrides any provided `quota`.
    # monthly_write_operations: 0 # Monthly number of Write operations.
    # monthly_list_operations: 0 # Monthly number of List and Create Container operations.
    # monthly_read_operations: 0 # Monthly number of Read operations.
    # monthly_other_operations: 0 # Monthly number of All other operations.
    # monthly_data_retrieval_gb: 0.0 # Monthly number of data retrieval in GB.
    # snapshots_storage_gb: 0.0 # Total size of Snapshots in GB
    # metadata_at_rest_storage_gb: 0.0 # Total size of Metadata in GB
  # module.storage_account_application.azurerm_storage_share.fileshare["applis-dam-medias-pub"]:
    # storage_gb: 0.0 # Total size of storage in GB. Overrides any provided `quota`.
    # monthly_write_operations: 0 # Monthly number of Write operations.
    # monthly_list_operations: 0 # Monthly number of List and Create Container operations.
    # monthly_read_operations: 0 # Monthly number of Read operations.
    # monthly_other_operations: 0 # Monthly number of All other operations.
    # monthly_data_retrieval_gb: 0.0 # Monthly number of data retrieval in GB.
    # snapshots_storage_gb: 0.0 # Total size of Snapshots in GB
    # metadata_at_rest_storage_gb: 0.0 # Total size of Metadata in GB
  # module.storage_account_application.azurerm_storage_share.fileshare["applis-fonts"]:
    # storage_gb: 0.0 # Total size of storage in GB. Overrides any provided `quota`.
    # monthly_write_operations: 0 # Monthly number of Write operations.
    # monthly_list_operations: 0 # Monthly number of List and Create Container operations.
    # monthly_read_operations: 0 # Monthly number of Read operations.
    # monthly_other_operations: 0 # Monthly number of All other operations.
    # monthly_data_retrieval_gb: 0.0 # Monthly number of data retrieval in GB.
    # snapshots_storage_gb: 0.0 # Total size of Snapshots in GB
    # metadata_at_rest_storage_gb: 0.0 # Total size of Metadata in GB
  # module.storage_account_application.azurerm_storage_share.fileshare["applis-heap-dumps"]:
    # storage_gb: 0.0 # Total size of storage in GB. Overrides any provided `quota`.
    # monthly_write_operations: 0 # Monthly number of Write operations.
    # monthly_list_operations: 0 # Monthly number of List and Create Container operations.
    # monthly_read_operations: 0 # Monthly number of Read operations.
    # monthly_other_operations: 0 # Monthly number of All other operations.
    # monthly_data_retrieval_gb: 0.0 # Monthly number of data retrieval in GB.
    # snapshots_storage_gb: 0.0 # Total size of Snapshots in GB
    # metadata_at_rest_storage_gb: 0.0 # Total size of Metadata in GB
  # module.storage_account_application.azurerm_storage_share.fileshare["applis-logs"]:
    # storage_gb: 0.0 # Total size of storage in GB. Overrides any provided `quota`.
    # monthly_write_operations: 0 # Monthly number of Write operations.
    # monthly_list_operations: 0 # Monthly number of List and Create Container operations.
    # monthly_read_operations: 0 # Monthly number of Read operations.
    # monthly_other_operations: 0 # Monthly number of All other operations.
    # monthly_data_retrieval_gb: 0.0 # Monthly number of data retrieval in GB.
    # snapshots_storage_gb: 0.0 # Total size of Snapshots in GB
    # metadata_at_rest_storage_gb: 0.0 # Total size of Metadata in GB
  # module.storage_account_application.azurerm_storage_share.fileshare["applis-settings"]:
    # storage_gb: 0.0 # Total size of storage in GB. Overrides any provided `quota`.
    # monthly_write_operations: 0 # Monthly number of Write operations.
    # monthly_list_operations: 0 # Monthly number of List and Create Container operations.
    # monthly_read_operations: 0 # Monthly number of Read operations.
    # monthly_other_operations: 0 # Monthly number of All other operations.
    # monthly_data_retrieval_gb: 0.0 # Monthly number of data retrieval in GB.
    # snapshots_storage_gb: 0.0 # Total size of Snapshots in GB
    # metadata_at_rest_storage_gb: 0.0 # Total size of Metadata in GB
  # module.storage_account_websites.azurerm_monitor_diagnostic_setting.diagnostics_settings["aon"]:
    # monthly_platform_log_gb: 0
  # module.storage_account_websites.azurerm_monitor_diagnostic_setting.diagnostics_settings["bolegacy"]:
    # monthly_platform_log_gb: 0
  # module.storage_account_websites.azurerm_monitor_diagnostic_setting.diagnostics_settings["bomiddle"]:
    # monthly_platform_log_gb: 0
  # module.storage_account_websites.azurerm_monitor_diagnostic_setting.diagnostics_settings["eespace"]:
    # monthly_platform_log_gb: 0
  # module.storage_account_websites.azurerm_monitor_diagnostic_setting.diagnostics_settings["pex"]:
    # monthly_platform_log_gb: 0
  # module.storage_account_websites.azurerm_private_dns_a_record.private_dns_zone_record_blob_atehub_a["aon"]:
    # monthly_queries: 0 # Monthly number of DNS queries
  # module.storage_account_websites.azurerm_private_dns_a_record.private_dns_zone_record_blob_atehub_a["bolegacy"]:
    # monthly_queries: 0 # Monthly number of DNS queries
  # module.storage_account_websites.azurerm_private_dns_a_record.private_dns_zone_record_blob_atehub_a["bomiddle"]:
    # monthly_queries: 0 # Monthly number of DNS queries
  # module.storage_account_websites.azurerm_private_dns_a_record.private_dns_zone_record_blob_atehub_a["eespace"]:
    # monthly_queries: 0 # Monthly number of DNS queries
  # module.storage_account_websites.azurerm_private_dns_a_record.private_dns_zone_record_blob_atehub_a["pex"]:
    # monthly_queries: 0 # Monthly number of DNS queries
  # module.storage_account_websites.azurerm_private_endpoint.blob_private_endpoint["aon"]:
    # monthly_inbound_data_processed_gb: 0 # Monthly inbound data processed in GB.
    # monthly_outbound_data_processed_gb: 0 # Monthly outbound data processed in GB.
  # module.storage_account_websites.azurerm_private_endpoint.blob_private_endpoint["bolegacy"]:
    # monthly_inbound_data_processed_gb: 0 # Monthly inbound data processed in GB.
    # monthly_outbound_data_processed_gb: 0 # Monthly outbound data processed in GB.
  # module.storage_account_websites.azurerm_private_endpoint.blob_private_endpoint["bomiddle"]:
    # monthly_inbound_data_processed_gb: 0 # Monthly inbound data processed in GB.
    # monthly_outbound_data_processed_gb: 0 # Monthly outbound data processed in GB.
  # module.storage_account_websites.azurerm_private_endpoint.blob_private_endpoint["eespace"]:
    # monthly_inbound_data_processed_gb: 0 # Monthly inbound data processed in GB.
    # monthly_outbound_data_processed_gb: 0 # Monthly outbound data processed in GB.
  # module.storage_account_websites.azurerm_private_endpoint.blob_private_endpoint["pex"]:
    # monthly_inbound_data_processed_gb: 0 # Monthly inbound data processed in GB.
    # monthly_outbound_data_processed_gb: 0 # Monthly outbound data processed in GB.
  # module.storage_account_websites.azurerm_storage_account.storage_accounts["aon"]:
    # data_at_rest_storage_gb: 0.0 # Total size of Data at Rest in GB (File storage).
    # early_deletion_gb: 0.0 # Total size of Early deletion data in GB.
    # snapshots_storage_gb: 0.0 # Total size of Snapshots in GB (File storage).
    # metadata_at_rest_storage_gb: 0.0 # Total size of Metadata in GB (File storage).
    # storage_gb: 0.0 # Total size of storage in GB.
    # monthly_iterative_write_operations: 0 # Monthly number of Iterative write operations (GPv2).
    # monthly_write_operations: 0 # Monthly number of Write operations.
    # monthly_list_and_create_container_operations: 0 # Monthly number of List and Create Container operations.
    # monthly_iterative_read_operations: 0 # Monthly number of Iterative read operations (GPv2).
    # monthly_read_operations: 0 # Monthly number of Read operations.
    # monthly_other_operations: 0 # Monthly number of All other operations.
    # monthly_data_retrieval_gb: 0.0 # Monthly number of data retrieval in GB.
    # monthly_data_write_gb: 0.0 # Monthly number of data write in GB.
    # blob_index_tags: 0 # Total number of Blob indexes.
  # module.storage_account_websites.azurerm_storage_account.storage_accounts["bolegacy"]:
    # data_at_rest_storage_gb: 0.0 # Total size of Data at Rest in GB (File storage).
    # early_deletion_gb: 0.0 # Total size of Early deletion data in GB.
    # snapshots_storage_gb: 0.0 # Total size of Snapshots in GB (File storage).
    # metadata_at_rest_storage_gb: 0.0 # Total size of Metadata in GB (File storage).
    # storage_gb: 0.0 # Total size of storage in GB.
    # monthly_iterative_write_operations: 0 # Monthly number of Iterative write operations (GPv2).
    # monthly_write_operations: 0 # Monthly number of Write operations.
    # monthly_list_and_create_container_operations: 0 # Monthly number of List and Create Container operations.
    # monthly_iterative_read_operations: 0 # Monthly number of Iterative read operations (GPv2).
    # monthly_read_operations: 0 # Monthly number of Read operations.
    # monthly_other_operations: 0 # Monthly number of All other operations.
    # monthly_data_retrieval_gb: 0.0 # Monthly number of data retrieval in GB.
    # monthly_data_write_gb: 0.0 # Monthly number of data write in GB.
    # blob_index_tags: 0 # Total number of Blob indexes.
  # module.storage_account_websites.azurerm_storage_account.storage_accounts["bomiddle"]:
    # data_at_rest_storage_gb: 0.0 # Total size of Data at Rest in GB (File storage).
    # early_deletion_gb: 0.0 # Total size of Early deletion data in GB.
    # snapshots_storage_gb: 0.0 # Total size of Snapshots in GB (File storage).
    # metadata_at_rest_storage_gb: 0.0 # Total size of Metadata in GB (File storage).
    # storage_gb: 0.0 # Total size of storage in GB.
    # monthly_iterative_write_operations: 0 # Monthly number of Iterative write operations (GPv2).
    # monthly_write_operations: 0 # Monthly number of Write operations.
    # monthly_list_and_create_container_operations: 0 # Monthly number of List and Create Container operations.
    # monthly_iterative_read_operations: 0 # Monthly number of Iterative read operations (GPv2).
    # monthly_read_operations: 0 # Monthly number of Read operations.
    # monthly_other_operations: 0 # Monthly number of All other operations.
    # monthly_data_retrieval_gb: 0.0 # Monthly number of data retrieval in GB.
    # monthly_data_write_gb: 0.0 # Monthly number of data write in GB.
    # blob_index_tags: 0 # Total number of Blob indexes.
  # module.storage_account_websites.azurerm_storage_account.storage_accounts["eespace"]:
    # data_at_rest_storage_gb: 0.0 # Total size of Data at Rest in GB (File storage).
    # early_deletion_gb: 0.0 # Total size of Early deletion data in GB.
    # snapshots_storage_gb: 0.0 # Total size of Snapshots in GB (File storage).
    # metadata_at_rest_storage_gb: 0.0 # Total size of Metadata in GB (File storage).
    # storage_gb: 0.0 # Total size of storage in GB.
    # monthly_iterative_write_operations: 0 # Monthly number of Iterative write operations (GPv2).
    # monthly_write_operations: 0 # Monthly number of Write operations.
    # monthly_list_and_create_container_operations: 0 # Monthly number of List and Create Container operations.
    # monthly_iterative_read_operations: 0 # Monthly number of Iterative read operations (GPv2).
    # monthly_read_operations: 0 # Monthly number of Read operations.
    # monthly_other_operations: 0 # Monthly number of All other operations.
    # monthly_data_retrieval_gb: 0.0 # Monthly number of data retrieval in GB.
    # monthly_data_write_gb: 0.0 # Monthly number of data write in GB.
    # blob_index_tags: 0 # Total number of Blob indexes.
  # module.storage_account_websites.azurerm_storage_account.storage_accounts["pex"]:
    # data_at_rest_storage_gb: 0.0 # Total size of Data at Rest in GB (File storage).
    # early_deletion_gb: 0.0 # Total size of Early deletion data in GB.
    # snapshots_storage_gb: 0.0 # Total size of Snapshots in GB (File storage).
    # metadata_at_rest_storage_gb: 0.0 # Total size of Metadata in GB (File storage).
    # storage_gb: 0.0 # Total size of storage in GB.
    # monthly_iterative_write_operations: 0 # Monthly number of Iterative write operations (GPv2).
    # monthly_write_operations: 0 # Monthly number of Write operations.
    # monthly_list_and_create_container_operations: 0 # Monthly number of List and Create Container operations.
    # monthly_iterative_read_operations: 0 # Monthly number of Iterative read operations (GPv2).
    # monthly_read_operations: 0 # Monthly number of Read operations.
    # monthly_other_operations: 0 # Monthly number of All other operations.
    # monthly_data_retrieval_gb: 0.0 # Monthly number of data retrieval in GB.
    # monthly_data_write_gb: 0.0 # Monthly number of data write in GB.
    # blob_index_tags: 0 # Total number of Blob indexes.
  # azurerm_automation_account.management_automation_account:
    # non_azure_config_node_count: 0 # Number of non-Azure configuration nodes.
    # monthly_watcher_hrs: 0 # Monthly number of watcher hours.
    # monthly_job_run_mins: 0 # Monthly number of job run minutes.
  # azurerm_automation_job_schedule.start_application_gateway_job_schedule:
    # monthly_job_run_mins: 0 # Monthly number of job run minutes.
  # azurerm_automation_job_schedule.stop_application_gateway_job_schedule:
    # monthly_job_run_mins: 0 # Monthly number of job run minutes.
  # azurerm_log_analytics_workspace.management_mkp_law:
    # monthly_log_data_ingestion_gb: 0.0 # Monthly log data ingested by the workspace in GB (only used for Pay-as-you-go workspaces).
    # monthly_additional_log_data_retention_gb: 0.0 # Monthly additional GB of data retained past the free allowance.
    # monthly_log_data_export_gb: 0.0 # Monthly data in GB exported from the workspace.
    # monthly_sentinel_data_ingestion_gb: 0.0 # Monthly data in GB exported from Microsoft Sentinel, this only applies when it is enabled.
    # monthly_basic_log_data_ingestion_gb: 0.0 # Monthly data ingested by the workspace to basic tables in GB
    # monthly_basic_log_search_gb: 0.0 # Monthly basic log data queried in GB
    # monthly_archive_data_gb: 0 # Monthly archived data in GB
    # monthly_archive_data_restored_gb: 0 # Monthly data restored from archive in GB
    # monthly_archive_data_searched_gb: 0 # Monthly data searched in archive with a Search Job, in GB
    # monthly_archived_data_gb: 0.0
    # monthly_archived_data_restored_gb: 0.0
    # monthly_archived_data_searched_gb: 0.0
  # azurerm_monitor_action_group.monitoring_action_group:
    # monthly_notifications: 0
  # module.application_gateway.azurerm_application_gateway.app_gateway:
    # monthly_data_processed_gb: 0 #  Monthly data processed by the Application Gateway in GB.
    # monthly_v2_capacity_units: 0 # Number capacity(for v2) units gateway.
  # module.application_gateway.azurerm_monitor_diagnostic_setting.app_gateway_diagnostics_settings:
    # monthly_platform_log_gb: 0
  # module.container_apps.azurerm_application_insights.container_apps_insights:
    # monthly_data_ingested_gb: 0.0 # Monthly amount of data ingested in GB.
  # module.container_apps.azurerm_private_dns_a_record.private_dns_a_record:
    # monthly_queries: 0 # Monthly number of DNS queries
  # module.keyvault.azurerm_monitor_diagnostic_setting.kv_diagnostics_settings:
    # monthly_platform_log_gb: 0
  # module.keyvault.azurerm_private_dns_a_record.private_dns_zone_record_kv_atehub_a:
    # monthly_queries: 0 # Monthly number of DNS queries
  # module.keyvault.azurerm_private_endpoint.private_endpoint_kv:
    # monthly_inbound_data_processed_gb: 0 # Monthly inbound data processed in GB.
    # monthly_outbound_data_processed_gb: 0 # Monthly outbound data processed in GB.
  # module.mongodb.azurerm_private_dns_a_record.private_dns_zone_record_mongodb_net_a:
    # monthly_queries: 0 # Monthly number of DNS queries
  # module.mongodb.azurerm_private_endpoint.mongodbatlas_private_endpoint:
    # monthly_inbound_data_processed_gb: 0 # Monthly inbound data processed in GB.
    # monthly_outbound_data_processed_gb: 0 # Monthly outbound data processed in GB.
  # module.rabbitmq.azurerm_private_dns_a_record.private_dns_zone_record_blob_atehub:
    # monthly_queries: 0 # Monthly number of DNS queries
  # module.rabbitmq.azurerm_private_dns_a_record.private_dns_zone_record_file_atehub:
    # monthly_queries: 0 # Monthly number of DNS queries
  # module.rabbitmq.azurerm_private_endpoint.storage_account_blob_private_endpoint:
    # monthly_inbound_data_processed_gb: 0 # Monthly inbound data processed in GB.
    # monthly_outbound_data_processed_gb: 0 # Monthly outbound data processed in GB.
  # module.rabbitmq.azurerm_private_endpoint.storage_account_file_private_endpoint:
    # monthly_inbound_data_processed_gb: 0 # Monthly inbound data processed in GB.
    # monthly_outbound_data_processed_gb: 0 # Monthly outbound data processed in GB.
  # module.rabbitmq.azurerm_storage_account.storage_account:
    # data_at_rest_storage_gb: 0.0 # Total size of Data at Rest in GB (File storage).
    # early_deletion_gb: 0.0 # Total size of Early deletion data in GB.
    # snapshots_storage_gb: 0.0 # Total size of Snapshots in GB (File storage).
    # metadata_at_rest_storage_gb: 0.0 # Total size of Metadata in GB (File storage).
    # storage_gb: 0.0 # Total size of storage in GB.
    # monthly_iterative_write_operations: 0 # Monthly number of Iterative write operations (GPv2).
    # monthly_write_operations: 0 # Monthly number of Write operations.
    # monthly_list_and_create_container_operations: 0 # Monthly number of List and Create Container operations.
    # monthly_iterative_read_operations: 0 # Monthly number of Iterative read operations (GPv2).
    # monthly_read_operations: 0 # Monthly number of Read operations.
    # monthly_other_operations: 0 # Monthly number of All other operations.
    # monthly_data_retrieval_gb: 0.0 # Monthly number of data retrieval in GB.
    # monthly_data_write_gb: 0.0 # Monthly number of data write in GB.
    # blob_index_tags: 0 # Total number of Blob indexes.
  # module.recovery_service.azurerm_monitor_diagnostic_setting.diagnostics_settings:
    # monthly_platform_log_gb: 0
  # module.recovery_service.azurerm_recovery_services_vault.recovery_service:
    # azurerm_backup_protected_vm.my_vm:
      # disk_utilization_gb: 0 # Total size in GB of the data that will be backed up into the recovery service vault. Defaults to the entire storage capacity of the VM.
      # additional_backup_retention_gb: 0 # Total size in GB of the additional data stored by this VM because of retention rules.
  # module.sqldatabases.azurerm_monitor_diagnostic_setting.diagnostics_settings:
    # monthly_platform_log_gb: 0
  # module.sqldatabases.azurerm_private_dns_a_record.private_dns_zone_record_audit_atehub_a:
    # monthly_queries: 0 # Monthly number of DNS queries
  # module.sqldatabases.azurerm_private_dns_a_record.private_dns_zone_record_sql_atehub_a:
    # monthly_queries: 0 # Monthly number of DNS queries
  # module.sqldatabases.azurerm_private_endpoint.audit_private_endpoint:
    # monthly_inbound_data_processed_gb: 0 # Monthly inbound data processed in GB.
    # monthly_outbound_data_processed_gb: 0 # Monthly outbound data processed in GB.
  # module.sqldatabases.azurerm_private_endpoint.private_endpoint:
    # monthly_inbound_data_processed_gb: 0 # Monthly inbound data processed in GB.
    # monthly_outbound_data_processed_gb: 0 # Monthly outbound data processed in GB.
  # module.sqldatabases.azurerm_storage_account.mssqlaudit:
    # data_at_rest_storage_gb: 0.0 # Total size of Data at Rest in GB (File storage).
    # early_deletion_gb: 0.0 # Total size of Early deletion data in GB.
    # snapshots_storage_gb: 0.0 # Total size of Snapshots in GB (File storage).
    # metadata_at_rest_storage_gb: 0.0 # Total size of Metadata in GB (File storage).
    # storage_gb: 0.0 # Total size of storage in GB.
    # monthly_iterative_write_operations: 0 # Monthly number of Iterative write operations (GPv2).
    # monthly_write_operations: 0 # Monthly number of Write operations.
    # monthly_list_and_create_container_operations: 0 # Monthly number of List and Create Container operations.
    # monthly_iterative_read_operations: 0 # Monthly number of Iterative read operations (GPv2).
    # monthly_read_operations: 0 # Monthly number of Read operations.
    # monthly_other_operations: 0 # Monthly number of All other operations.
    # monthly_data_retrieval_gb: 0.0 # Monthly number of data retrieval in GB.
    # monthly_data_write_gb: 0.0 # Monthly number of data write in GB.
    # blob_index_tags: 0 # Total number of Blob indexes.

As you can see there is some characters that made the file non valid regarding the yaml constrains

image

Regards

@matthieupetite
Copy link
Contributor Author

It's strange but the defect occurs when the line is long...

@vdmgolub
Copy link
Contributor

@matthieupetite Hello! Thanks for creating the issue! :) I was able to reproduce the error. CLI needs resource_usage: to be available. When I uncomment it, it works fine.

Could you please uncomment it and retry?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants