Skip to content

Commit 182514c

Browse files
authored
feat:[CCM-20085]: Add Governance as feature in all cloud provider CCM connectors (#1110)
* feat:[CCM-20085]: Add Governance as feature in azure and gcp connector * feat:[CCM-20085]: Add Governance as feature in aws connector
1 parent 8074bc4 commit 182514c

File tree

13 files changed

+20
-21
lines changed

13 files changed

+20
-21
lines changed

.changelog/1091.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
```release-note:enhancement
2+
harness_platform_connector_awscc: Added GOVERNANCE as a feature that can be enabled for the AWS Cloud Cost connector.
3+
harness_platform_connector_azure_cloud_cost: Added GOVERNANCE as a feature that can be enabled for the Azure Cloud Cost connector.
4+
harness_platform_connector_gcp_cloud_cost: Added GOVERNANCE as a feature that can be enabled for the GCP Cloud Cost connector.
5+
```

docs/data-sources/platform_connector_awscc.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ data "harness_platform_connector_awscc" "example" {
3636
- `account_id` (String) The AWS account id.
3737
- `cross_account_access` (List of Object) Harness uses the secure cross-account role to access your AWS account. The role includes a restricted policy to access the cost and usage reports and resources for the sole purpose of cost analysis and cost optimization. (see [below for nested schema](#nestedatt--cross_account_access))
3838
- `description` (String) Description of the resource.
39-
- `features_enabled` (Set of String) The features enabled for the connector. Valid values are BILLING, OPTIMIZATION, VISIBILITY.
39+
- `features_enabled` (Set of String) The features enabled for the connector. Valid values are BILLING, OPTIMIZATION, VISIBILITY, GOVERNANCE.
4040
- `id` (String) The ID of this resource.
4141
- `report_name` (String) The cost and usage report name. Provided in the delivery options when the template is opened in the AWS console.
4242
- `s3_bucket` (String) The name of s3 bucket.
@@ -49,5 +49,3 @@ Read-Only:
4949

5050
- `external_id` (String)
5151
- `role_arn` (String)
52-
53-

docs/data-sources/platform_connector_azure_cloud_cost.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ data "harness_platform_connector_azure_cloud_cost" "example" {
3535

3636
- `billing_export_spec` (List of Object) Returns billing details for the Azure account. (see [below for nested schema](#nestedatt--billing_export_spec))
3737
- `description` (String) Description of the resource.
38-
- `features_enabled` (Set of String) Indicates which feature to enable among Billing, Optimization, and Visibility.
38+
- `features_enabled` (Set of String) Indicates which feature to enable among Billing, Optimization, Visibility and Governance.
3939
- `id` (String) The ID of this resource.
4040
- `subscription_id` (String) Subsription id.
4141
- `tags` (Set of String) Tags to associate with the resource.
@@ -51,5 +51,3 @@ Read-Only:
5151
- `report_name` (String)
5252
- `storage_account_name` (String)
5353
- `subscription_id` (String)
54-
55-

docs/data-sources/platform_connector_gcp_cloud_cost.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ data "harness_platform_connector_gcp_cloud_cost" "example" {
3535

3636
- `billing_export_spec` (List of Object) Returns billing details. (see [below for nested schema](#nestedatt--billing_export_spec))
3737
- `description` (String) Description of the resource.
38-
- `features_enabled` (Set of String) Indicates which features to enable among Billing, Optimization, and Visibility.
38+
- `features_enabled` (Set of String) Indicates which features to enable among Billing, Optimization, Visibility and Governance.
3939
- `gcp_project_id` (String) GCP Project Id.
4040
- `id` (String) The ID of this resource.
4141
- `service_account_email` (String) Email corresponding to the Service Account.
@@ -48,5 +48,3 @@ Read-Only:
4848

4949
- `data_set_id` (String)
5050
- `table_id` (String)
51-
52-

docs/resources/platform_connector_awscc.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,17 @@ resource "harness_platform_connector_awscc" "test" {
4141

4242
- `account_id` (String) The AWS account id.
4343
- `cross_account_access` (Block List, Min: 1, Max: 1) Harness uses the secure cross-account role to access your AWS account. The role includes a restricted policy to access the cost and usage reports and resources for the sole purpose of cost analysis and cost optimization. (see [below for nested schema](#nestedblock--cross_account_access))
44-
- `features_enabled` (Set of String) The features enabled for the connector. Valid values are BILLING, OPTIMIZATION, VISIBILITY.
44+
- `features_enabled` (Set of String) The features enabled for the connector. Valid values are BILLING, OPTIMIZATION, VISIBILITY, GOVERNANCE.
4545
- `identifier` (String) Unique identifier of the resource.
4646
- `name` (String) Name of the resource.
4747

4848
### Optional
4949

50-
- `report_name` (String) The cost and usage report name. Provided in the delivery options when the template is opened in the AWS console.
51-
- `s3_bucket` (String) The name of s3 bucket.
5250
- `description` (String) Description of the resource.
5351
- `org_id` (String) Unique identifier of the organization.
5452
- `project_id` (String) Unique identifier of the project.
53+
- `report_name` (String) The cost and usage report name. Provided in the delivery options when the template is opened in the AWS console.
54+
- `s3_bucket` (String) The name of s3 bucket.
5555
- `tags` (Set of String) Tags to associate with the resource.
5656

5757
### Read-Only

docs/resources/platform_connector_azure_cloud_cost.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ resource "harness_platform_connector_azure_cloud_cost" "example" {
1919
description = "example"
2020
tags = ["foo:bar"]
2121
22-
features_enabled = ["BILLING", "VISIBILITY", "OPTIMIZATION"]
22+
features_enabled = ["BILLING", "VISIBILITY", "OPTIMIZATION", "GOVERNANCE"]
2323
tenant_id = "tenant_id"
2424
subscription_id = "subscription_id"
2525
billing_export_spec {

docs/resources/platform_connector_gcp_cloud_cost.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ resource "harness_platform_connector_gcp_cloud_cost" "test" {
1919
description = "test"
2020
tags = ["foo:bar"]
2121
22-
features_enabled = ["BILLING", "VISIBILITY", "OPTIMIZATION"]
22+
features_enabled = ["BILLING", "VISIBILITY", "OPTIMIZATION", "GOVERNANCE"]
2323
gcp_project_id = "gcp_project_id"
2424
service_account_email = "service_account_email"
2525
billing_export_spec {

examples/resources/harness_platform_connector_azure_cloud_cost/resource.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ resource "harness_platform_connector_azure_cloud_cost" "example" {
44
description = "example"
55
tags = ["foo:bar"]
66

7-
features_enabled = ["BILLING", "VISIBILITY", "OPTIMIZATION"]
7+
features_enabled = ["BILLING", "VISIBILITY", "OPTIMIZATION", "GOVERNANCE"]
88
tenant_id = "tenant_id"
99
subscription_id = "subscription_id"
1010
billing_export_spec {

examples/resources/harness_platform_connector_gcp_cloud_cost/resource.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ resource "harness_platform_connector_gcp_cloud_cost" "test" {
44
description = "test"
55
tags = ["foo:bar"]
66

7-
features_enabled = ["BILLING", "VISIBILITY", "OPTIMIZATION"]
7+
features_enabled = ["BILLING", "VISIBILITY", "OPTIMIZATION", "GOVERNANCE"]
88
gcp_project_id = "gcp_project_id"
99
service_account_email = "service_account_email"
1010
billing_export_spec {

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ require (
66
github.com/antihax/optional v1.0.0
77
github.com/aws/aws-sdk-go v1.46.4
88
github.com/docker/docker v24.0.5+incompatible
9-
github.com/harness/harness-go-sdk v0.4.12
9+
github.com/harness/harness-go-sdk v0.4.14
1010
github.com/harness/harness-openapi-go-client v0.0.21
1111
github.com/hashicorp/go-cleanhttp v0.5.2
1212
github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320

0 commit comments

Comments
 (0)