Skip to content

Commit d2ea4e9

Browse files
authored
[CLOUDGA-30165] New Relic integration support in YBM Terraform provider, Fix TF plugin crashes while creating integration resources. (#183)
* [CLOUDGA-30165] New Relic integration support in YBM Terraform provider. * [CLOUDGA-31409] Fixed TF plugin crashes caused due to AWS S3 integration & FF changes.
1 parent e526368 commit d2ea4e9

File tree

9 files changed

+424
-270
lines changed

9 files changed

+424
-270
lines changed

docs/data-sources/integration.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ data "ybm_integration" "example_name" {
3333
- `googlecloud_spec` (Attributes) The specifications of a Google Cloud integration. (see [below for nested schema](#nestedatt--googlecloud_spec))
3434
- `grafana_spec` (Attributes) The specifications of a Grafana integration. (see [below for nested schema](#nestedatt--grafana_spec))
3535
- `is_valid` (Boolean) Signifies whether the integration configuration is valid or not
36+
- `newrelic_spec` (Attributes) The specifications of a Newrelic integration. (see [below for nested schema](#nestedatt--newrelic_spec))
3637
- `project_id` (String) The ID of the project this integration belongs to.
3738
- `prometheus_spec` (Attributes) The specifications of a Prometheus integration. (see [below for nested schema](#nestedatt--prometheus_spec))
3839
- `sumologic_spec` (Attributes) The specifications of a Sumo Logic integration. (see [below for nested schema](#nestedatt--sumologic_spec))
@@ -91,6 +92,15 @@ Read-Only:
9192
- `zone` (String) Grafana Zone.
9293

9394

95+
<a id="nestedatt--newrelic_spec"></a>
96+
### Nested Schema for `newrelic_spec`
97+
98+
Required:
99+
100+
- `endpoint` (String) Newrelic Endpoint URL
101+
- `license_key` (String, Sensitive) Newrelic License Key
102+
103+
94104
<a id="nestedatt--prometheus_spec"></a>
95105
### Nested Schema for `prometheus_spec`
96106

docs/resources/integration.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,19 @@ resource "ybm_integration" "gcp" {
107107
}
108108
```
109109

110+
To create NewRelic integration
111+
112+
```terraform
113+
resource "ybm_integration" "newrelic" {
114+
config_name = "newrelic-example"
115+
type = "NEWRELIC"
116+
newrelic_spec = {
117+
endpoint = "<newrelic endpoint url>"
118+
license_key = "<newrelic license key>"
119+
}
120+
}
121+
```
122+
110123
<!-- schema generated by tfplugindocs -->
111124
## Schema
112125

@@ -120,6 +133,7 @@ resource "ybm_integration" "gcp" {
120133
- `datadog_spec` (Attributes) The specifications of a Datadog integration. (see [below for nested schema](#nestedatt--datadog_spec))
121134
- `googlecloud_spec` (Attributes) The specifications of a Google Cloud integration. (see [below for nested schema](#nestedatt--googlecloud_spec))
122135
- `grafana_spec` (Attributes) The specifications of a Grafana integration. (see [below for nested schema](#nestedatt--grafana_spec))
136+
- `newrelic_spec` (Attributes) The specifications of a New Relic integration. (see [below for nested schema](#nestedatt--newrelic_spec))
123137
- `prometheus_spec` (Attributes) The specifications of a Prometheus integration. (see [below for nested schema](#nestedatt--prometheus_spec))
124138
- `sumologic_spec` (Attributes) The specifications of a Sumo Logic integration. (see [below for nested schema](#nestedatt--sumologic_spec))
125139
- `victoriametrics_spec` (Attributes) The specifications of a VictoriaMetrics integration. (see [below for nested schema](#nestedatt--victoriametrics_spec))
@@ -172,6 +186,15 @@ Required:
172186
- `zone` (String) Grafana Zone.
173187

174188

189+
<a id="nestedatt--newrelic_spec"></a>
190+
### Nested Schema for `newrelic_spec`
191+
192+
Required:
193+
194+
- `endpoint` (String) New Relic Endpoint URL
195+
- `license_key` (String, Sensitive) New Relic License Key
196+
197+
175198
<a id="nestedatt--prometheus_spec"></a>
176199
### Nested Schema for `prometheus_spec`
177200

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
resource "ybm_integration" "newrelic" {
2+
config_name = "newrelic-example"
3+
type = "NEWRELIC"
4+
newrelic_spec = {
5+
endpoint = "<newrelic endpoint url>"
6+
license_key = "<newrelic license key>"
7+
}
8+
}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ require (
1010
github.com/hashicorp/terraform-plugin-framework-validators v0.4.0
1111
github.com/hashicorp/terraform-plugin-log v0.9.0
1212
github.com/sethvargo/go-retry v0.2.3
13-
github.com/yugabyte/yugabytedb-managed-go-client-internal v0.0.0-20251118094438-1c4e03a493b9
13+
github.com/yugabyte/yugabytedb-managed-go-client-internal v0.0.0-20260119193723-d17483f32689
1414
)
1515

1616
require github.com/stretchr/testify v1.8.2 // indirect

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,8 @@ github.com/vmihailenco/msgpack/v5 v5.3.5 h1:5gO0H1iULLWGhs2H5tbAHIZTV8/cYafcFOr9
169169
github.com/vmihailenco/msgpack/v5 v5.3.5/go.mod h1:7xyJ9e+0+9SaZT0Wt1RGleJXzli6Q/V5KbhBonMG9jc=
170170
github.com/vmihailenco/tagparser/v2 v2.0.0 h1:y09buUbR+b5aycVFQs/g70pqKVZNBmxwAhO7/IwNM9g=
171171
github.com/vmihailenco/tagparser/v2 v2.0.0/go.mod h1:Wri+At7QHww0WTrCBeu4J6bNtoV6mEfg5OIWRZA9qds=
172-
github.com/yugabyte/yugabytedb-managed-go-client-internal v0.0.0-20251118094438-1c4e03a493b9 h1:XK3GkUzJEZtbfQa2/T8owQzU/Ta1pi4Ycccyw6XEItY=
173-
github.com/yugabyte/yugabytedb-managed-go-client-internal v0.0.0-20251118094438-1c4e03a493b9/go.mod h1:5vW0xIzIZw+1djkiWKx0qqNmqbRBSf4mjc4qw8lIMik=
172+
github.com/yugabyte/yugabytedb-managed-go-client-internal v0.0.0-20260119193723-d17483f32689 h1:DnXLydzXOu0fzaMjKxWls8gzCVPMEo1ef5eVxxQ7rqM=
173+
github.com/yugabyte/yugabytedb-managed-go-client-internal v0.0.0-20260119193723-d17483f32689/go.mod h1:5vW0xIzIZw+1djkiWKx0qqNmqbRBSf4mjc4qw8lIMik=
174174
github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
175175
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
176176
github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=

0 commit comments

Comments
 (0)