Registry / devops / cdktf-cdktf-provider-newrelic

cdktf-cdktf-provider-newrelic

JSON →
library13.12.2pypypiunverified

Prebuilt New Relic provider for the CDK for Terraform (CDKTF). Version 13.12.2 generates Python classes that wrap the New Relic Terraform provider. Released roughly monthly in lockstep with the upstream provider.

pip install cdktf-cdktf-provider-newrelic
INSTALL
IMPORT
SIG · CDKTF-CDKTF-PROVID
C
cdktf-cdktf-provider-newrelic
devopspythonv13.12.2
Install
4.4s avg
Import
Disk
45MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v13.12.2 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 42.9MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 4.4s · import 0.000s · 43MB
45MB installed
● package 45MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

NewRelicProvider
from cdktf_cdktf_provider_newrelic import NewRelicProvider
from cdktf_cdktf_provider_newrelic.provider import NewRelicProvider

Synthesizes a minimal New Relic alert policy using CDKTF.

from cdktf import App, TerraformStack from cdktf_cdktf_provider_newrelic.provider import NewRelicProvider from cdktf_cdktf_provider_newrelic.alert_policy import AlertPolicy app = App() stack = TerraformStack(app, "newrelic-example") NewRelicProvider(stack, "newrelic", api_key=os.environ.get('NEWRELIC_API_KEY', '')) AlertPolicy(stack, "my_policy", name="My Policy") app.synth()
Debug
Known issues
gotchaAll resource classes are located in separate modules named after the resource (e.g., alert_policy, nrql_alert_condition). Guessing the import path often leads to ModuleNotFoundError.
fix
Use `from cdktf_cdktf_provider_newrelic.<resource_snake_case> import <ResourceName>`
affects: all
breakingMajor version bumps (e.g., 11→12) may rename or restructure resource classes and properties. Check the provider's changelog before upgrading.
fix
Review the GitHub releases at https://github.com/cdktf/cdktf-provider-newrelic/releases
affects: 12.0.0, 13.0.0
deprecatedThe old `from cdktf_cdktf_provider_newrelic import NewRelicProvider` top-level import no longer works; it was removed in version 12.
fix
Use `from cdktf_cdktf_provider_newrelic.provider import NewRelicProvider`
affects: >=12.0.0
Upgrade
Version history
13.12.2latest on PyPI · released Dec 10, 2025
Audit
Dependencies
cdktfrequiredRequired runtime for all CDKTF providers.
cdktf-cdktf-provider-newrelicrequiredThe provider package itself (runtime dep).
Agent activity
16 hits · last 30 days
node
14
OpenAI (training)
1
Resources