File tree Expand file tree Collapse file tree 4 files changed +12
-3
lines changed
modules/meshcloud-carbon-export Expand file tree Collapse file tree 4 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ To run this module, you need the following:
32
32
# Only required when you need your landing zone to invoke a cloud function
33
33
"cloudfunctions.functions.getIamPolicy",
34
34
"cloudfunctions.functions.setIamPolicy",
35
- # Only required for the optional submodule for exporting carbon data
35
+ # Only required for the optional submodule for exporting carbon data
36
36
"resourcemanager.projects.update",
37
37
"serviceusage.services.enable",
38
38
"bigquery.transfers.update"
@@ -177,6 +177,7 @@ No resources.
177
177
178
178
| Name | Description |
179
179
| ------| -------------|
180
+ | < a name=" output_carbon_footprint_export_table_name" ></a> [carbon\_ footprint\_ export\_ table\_ name](# output\_carbon\_footprint\_export\_table\_name) | The BigQuery table name containing the GCP Carbon Footprint BigQuery export. |
180
181
| < a name=" output_cloud_billing_export_table_name" ></a> [cloud\_ billing\_ export\_ table\_ name](# output\_cloud\_billing\_export\_table\_name) | The BigQuery table name containing the GCP Cloud Billing BigQuery export. |
181
182
| < a name=" output_kraken_sa_email" ></a> [kraken\_ sa\_ email](# output\_kraken\_sa\_email) | Kraken service account email. |
182
183
| < a name=" output_kraken_sa_key" ></a> [kraken\_ sa\_ key](# output\_kraken\_sa\_key) | Kraken service account key. |
Original file line number Diff line number Diff line change @@ -25,8 +25,8 @@ module "carbon_export" {
25
25
source = " ./modules/meshcloud-carbon-export/"
26
26
count = var. carbon_export_module_enabled ? 1 : 0
27
27
28
- carbon_data_export_dataset_id = var. carbon_footprint_dataset_id
29
28
carbon_data_export_project_id = var. cloud_billing_export_project_id # using the same project as for billing
29
+ carbon_data_export_dataset_id = var. carbon_footprint_dataset_id
30
30
carbon_dataset_region = var. carbon_footprint_dataset_location
31
31
32
32
billing_account_id = var. billing_account_id
Original file line number Diff line number Diff line change 1
1
output "carbon_footprint_export_table_name" {
2
2
description = " The BigQuery table name containing the GCP Carbon Footprint BigQuery export."
3
- value = " ${ var . carbon_data_export_project_id } .${ var . carbon_data_export_dataset_id } .${ var . carbon_data_export_dataset_id } "
3
+
4
+ # note carbon_footprint is the default table name that google's data transfer config creates
5
+ # we can't control this via terraform right now
6
+ value = " ${ var . carbon_data_export_project_id } .${ var . carbon_data_export_dataset_id } .carbon_footprint"
4
7
}
Original file line number Diff line number Diff line change @@ -29,3 +29,8 @@ output "cloud_billing_export_table_name" {
29
29
description = " The BigQuery table name containing the GCP Cloud Billing BigQuery export."
30
30
value = " ${ var . cloud_billing_export_project_id } .${ var . cloud_billing_export_dataset_id } .${ var . cloud_billing_export_table_id } "
31
31
}
32
+
33
+ output "carbon_footprint_export_table_name" {
34
+ description = " The BigQuery table name containing the GCP Carbon Footprint BigQuery export."
35
+ value = try (module. carbon_export [0 ]. carbon_footprint_export_table_name , null )
36
+ }
You can’t perform that action at this time.
0 commit comments