diff --git a/harness/slo/harness_platform_connector_prometheus.connectorRef.tf b/harness/slo/harness_platform_connector_prometheus.connectorRef.tf index f4f3312..bc76a92 100644 --- a/harness/slo/harness_platform_connector_prometheus.connectorRef.tf +++ b/harness/slo/harness_platform_connector_prometheus.connectorRef.tf @@ -1,13 +1,10 @@ resource "harness_platform_connector_prometheus" "connectorRef" { - depends_on = [ - harness_platform_project.terraform_project - ] identifier = "connectorRef" name = "connectorRef" description = "prometheus" tags = ["foo:bar"] - org_id = harness_platform_organization.terraform_org.id - project_id = harness_platform_project.terraform_project.id - delegate_selectors = ["stress-chi-play-med-ng"] + org_id = "cvng" + project_id = "ecommerce" + delegate_selectors = ["chi-play-prod2-small"] url = "http://10.4.2.99:80/health-source/prometheus/" } diff --git a/harness/slo/harness_platform_environment.environment_ref.tf b/harness/slo/harness_platform_environment.environment_ref.tf index 049bff5..147456b 100644 --- a/harness/slo/harness_platform_environment.environment_ref.tf +++ b/harness/slo/harness_platform_environment.environment_ref.tf @@ -1,11 +1,8 @@ resource "harness_platform_environment" "environment_ref" { - depends_on = [ - harness_platform_project.terraform_project - ] identifier = "environment_ref" name = "environment_ref" - org_id = harness_platform_organization.terraform_org.id - project_id = harness_platform_project.terraform_project.id + org_id = "cvng" + project_id = "ecommerce" tags = ["foo:bar", "baz"] type = "PreProduction" } diff --git a/harness/slo/harness_platform_monitored_service.service_ref_environment_ref.tf b/harness/slo/harness_platform_monitored_service.service_ref_environment_ref.tf index 650c1d8..29faea3 100644 --- a/harness/slo/harness_platform_monitored_service.service_ref_environment_ref.tf +++ b/harness/slo/harness_platform_monitored_service.service_ref_environment_ref.tf @@ -3,8 +3,8 @@ resource "harness_platform_monitored_service" "service_ref_environment_ref" { harness_platform_connector_prometheus.connectorRef ] - org_id = "terraform_org" - project_id = "terraform_project" + org_id = "cvng" + project_id = "ecommerce" identifier = "service_ref_environment_ref" request { name = "service_ref_environment_ref" @@ -49,7 +49,6 @@ resource "harness_platform_monitored_service" "service_ref_environment_ref" { template_ref = "template_ref" version_label = "version_label" - enabled = true } } diff --git a/harness/slo/harness_platform_organization.terraform_org.tf b/harness/slo/harness_platform_organization.terraform_org.tf deleted file mode 100644 index 92c920e..0000000 --- a/harness/slo/harness_platform_organization.terraform_org.tf +++ /dev/null @@ -1,4 +0,0 @@ -resource "harness_platform_organization" "terraform_org" { - identifier = "terraform_org" - name = "terraform_org" -} diff --git a/harness/slo/harness_platform_project.terraform_project.tf b/harness/slo/harness_platform_project.terraform_project.tf deleted file mode 100644 index ef0a35d..0000000 --- a/harness/slo/harness_platform_project.terraform_project.tf +++ /dev/null @@ -1,9 +0,0 @@ -resource "harness_platform_project" "terraform_project" { - depends_on = [ - harness_platform_organization.terraform_org - ] - identifier = "terraform_project" - name = "terraform_project" - org_id = harness_platform_organization.terraform_org.id - color = "#472848" -} diff --git a/harness/slo/harness_platform_service.service_ref.tf b/harness/slo/harness_platform_service.service_ref.tf index 96aea22..bc16181 100644 --- a/harness/slo/harness_platform_service.service_ref.tf +++ b/harness/slo/harness_platform_service.service_ref.tf @@ -1,9 +1,6 @@ resource "harness_platform_service" "service_ref" { - depends_on = [ - harness_platform_project.terraform_project - ] identifier = "service_ref" name = "service_ref" - org_id = harness_platform_organization.terraform_org.id - project_id = harness_platform_project.terraform_project.id + org_id = "cvng" + project_id = "ecommerce" } diff --git a/harness/slo/harness_platform_slo.slo.tf b/harness/slo/harness_platform_slo.slo.tf index eadc619..bd94d4d 100644 --- a/harness/slo/harness_platform_slo.slo.tf +++ b/harness/slo/harness_platform_slo.slo.tf @@ -2,8 +2,8 @@ resource "harness_platform_slo" "slo" { depends_on = [ harness_platform_monitored_service.service_ref_environment_ref, ] - org_id = harness_platform_organization.terraform_org.id - project_id = harness_platform_project.terraform_project.id + org_id = "cvng" + project_id = "ecommerce" identifier = "slo" request { name = "slo" diff --git a/harness/slo/harness_provider.tf b/harness/slo/harness_provider.tf index 0916bda..3d113af 100644 --- a/harness/slo/harness_provider.tf +++ b/harness/slo/harness_provider.tf @@ -6,7 +6,7 @@ terraform { } } provider "harness" { - endpoint = "https://qa.harness.io" - account_id = "-k53qRQAQ1O7DBLb9ACnjQ" - platform_api_key = "pat.-k53qRQAQ1O7DBLb9ACnjQ.63eb6a8f9aae3a716967a51b.kMS1Ro6qzbZ5Jjem1ppn" + endpoint = "https://app.harness.io" + account_id = "vpCkHKsDSxK9_KYfjCTMKA" + platform_api_key = "pat.vpCkHKsDSxK9_KYfjCTMKA.650067f377e8f74cceca10fd.ANxs4FF6yOgfpWEABrOp" }