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

Harness #3

Open
wants to merge 28 commits into
base: harness
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
529d2dd
Update harness_provider.tf
Varsha-lalwani Sep 12, 2023
4685660
Update harness_platform_slo.slo.tf
Varsha-lalwani Sep 12, 2023
94738a9
Update harness_provider.tf
Varsha-lalwani Sep 12, 2023
73581ce
Update harness_platform_slo.slo.tf
Varsha-lalwani Sep 12, 2023
305b684
Update harness_platform_slo.slo.tf
Varsha-lalwani Sep 12, 2023
4c9ee98
Update harness_platform_slo.slo.tf
Varsha-lalwani Sep 12, 2023
d7e36bf
Update harness_platform_slo.slo.tf
Varsha-lalwani Sep 12, 2023
c6a1673
Update harness_platform_connector_prometheus.connectorRef.tf
Varsha-lalwani Sep 12, 2023
6954878
Update harness_platform_monitored_service.service_ref_environment_ref.tf
Varsha-lalwani Sep 12, 2023
0dcf0db
Update harness_provider.tf
Varsha-lalwani Sep 12, 2023
dc04667
Update harness_provider.tf
Varsha-lalwani Sep 12, 2023
5f6f5e9
Update harness_platform_project.terraform_project.tf
Varsha-lalwani Sep 12, 2023
714cff2
Update harness_platform_connector_prometheus.connectorRef.tf
Varsha-lalwani Sep 12, 2023
cc42c59
Update harness_platform_environment.environment_ref.tf
Varsha-lalwani Sep 12, 2023
617437c
Update harness_platform_monitored_service.service_ref_environment_ref.tf
Varsha-lalwani Sep 12, 2023
df51b1e
Delete harness/slo/harness_platform_organization.terraform_org.tf
Varsha-lalwani Sep 12, 2023
7561db9
Update harness_platform_service.service_ref.tf
Varsha-lalwani Sep 12, 2023
d48ef72
Update harness_platform_slo.slo.tf
Varsha-lalwani Sep 12, 2023
0100564
Merge branch 'harness' into harness
Varsha-lalwani Sep 12, 2023
42573dc
Update harness_platform_connector_prometheus.connectorRef.tf
Varsha-lalwani Sep 12, 2023
b29b531
Update harness_platform_environment.environment_ref.tf
Varsha-lalwani Sep 12, 2023
ab2767b
Update harness_platform_monitored_service.service_ref_environment_ref.tf
Varsha-lalwani Sep 12, 2023
72013b7
Delete harness/slo/harness_platform_project.terraform_project.tf
Varsha-lalwani Sep 12, 2023
6741ada
Update harness_platform_service.service_ref.tf
Varsha-lalwani Sep 12, 2023
26ddb25
Update harness_platform_slo.slo.tf
Varsha-lalwani Sep 12, 2023
97ed25b
Update harness_platform_environment.environment_ref.tf
Varsha-lalwani Sep 12, 2023
978bf2e
Update harness_platform_connector_prometheus.connectorRef.tf
Varsha-lalwani Sep 12, 2023
075bac1
Update harness_platform_service.service_ref.tf
Varsha-lalwani Sep 12, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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/"
}
7 changes: 2 additions & 5 deletions harness/slo/harness_platform_environment.environment_ref.tf
Original file line number Diff line number Diff line change
@@ -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"
}
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -49,7 +49,6 @@ resource "harness_platform_monitored_service" "service_ref_environment_ref" {

template_ref = "template_ref"
version_label = "version_label"
enabled = true
}
}

4 changes: 0 additions & 4 deletions harness/slo/harness_platform_organization.terraform_org.tf

This file was deleted.

9 changes: 0 additions & 9 deletions harness/slo/harness_platform_project.terraform_project.tf

This file was deleted.

7 changes: 2 additions & 5 deletions harness/slo/harness_platform_service.service_ref.tf
Original file line number Diff line number Diff line change
@@ -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"
}
4 changes: 2 additions & 2 deletions harness/slo/harness_platform_slo.slo.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions harness/slo/harness_provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}