Skip to content

Commit

Permalink
[feat]: [CCM-18618]: Add support for governance in gcp and azure cc c…
Browse files Browse the repository at this point in the history
…onnectors (#1006)

* [feat]: [CCM-18618]: Add support for governance in gcp and azure cc connectors

* [feat]: [CCM-18618]: Update docs

* [feat]: [CCM-18618]: Update docs
  • Loading branch information
rathodmeetsatish committed Jul 8, 2024
1 parent cd5e66e commit 5af19a7
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .changelog/1006.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
```release-note:enhancement
harness_platform_connector_gcp_cloud_cost: Added support for governance in feature_enabled field in gcp and azure cloud cost connectors
harness_platform_connector_azure_cloud_cost: Added support for governance in feature_enabled field in gcp and azure cloud cost connectors
```
2 changes: 1 addition & 1 deletion docs/resources/platform_connector_azure_cloud_cost.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ resource "harness_platform_connector_azure_cloud_cost" "example" {

### Required

- `features_enabled` (Set of String) Indicates which feature to enable among Billing, Optimization, and Visibility.
- `features_enabled` (Set of String) Indicates which feature to enable among Billing, Optimization, Visibility and Governance.
- `identifier` (String) Unique identifier of the resource.
- `name` (String) Name of the resource.
- `subscription_id` (String) Subsription id.
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/platform_connector_gcp_cloud_cost.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ resource "harness_platform_connector_gcp_cloud_cost" "test" {

### Required

- `features_enabled` (Set of String) Indicates which features to enable among Billing, Optimization, and Visibility.
- `features_enabled` (Set of String) Indicates which features to enable among Billing, Optimization, Visibility and Governance.
- `gcp_project_id` (String) GCP Project Id.
- `identifier` (String) Unique identifier of the resource.
- `name` (String) Name of the resource.
Expand Down
4 changes: 2 additions & 2 deletions internal/service/platform/connector/azure_cloud_cost.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ func ResourceConnectorAzureCloudCost() *schema.Resource {

Schema: map[string]*schema.Schema{
"features_enabled": {
Description: "Indicates which feature to enable among Billing, Optimization, and Visibility.",
Description: "Indicates which feature to enable among Billing, Optimization, Visibility and Governance.",
Type: schema.TypeSet,
Required: true,
Elem: &schema.Schema{
Type: schema.TypeString,
ValidateFunc: validation.StringInSlice([]string{"BILLING", "OPTIMIZATION", "VISIBILITY"}, false),
ValidateFunc: validation.StringInSlice([]string{"BILLING", "OPTIMIZATION", "VISIBILITY", "GOVERNANCE"}, false),
},
},
"tenant_id": {
Expand Down
4 changes: 2 additions & 2 deletions internal/service/platform/connector/gcp_cloud_cost.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ func ResourceConnectorGCPCloudCost() *schema.Resource {

Schema: map[string]*schema.Schema{
"features_enabled": {
Description: "Indicates which features to enable among Billing, Optimization, and Visibility.",
Description: "Indicates which features to enable among Billing, Optimization, Visibility and Governance.",
Type: schema.TypeSet,
Required: true,
Elem: &schema.Schema{
Type: schema.TypeString,
ValidateFunc: validation.StringInSlice([]string{"BILLING", "OPTIMIZATION", "VISIBILITY"}, false),
ValidateFunc: validation.StringInSlice([]string{"BILLING", "OPTIMIZATION", "VISIBILITY", "GOVERNANCE"}, false),
},
},
"gcp_project_id": {
Expand Down

0 comments on commit 5af19a7

Please sign in to comment.