{"id":23049,"library":"cdktf-cdktf-provider-null","title":"CDKTF Provider: null","description":"Prebuilt Terraform CDK (CDKTF) provider for the null resource. Allows provisioning of resources that do nothing, useful for implementing triggers or placeholders. Version 11.0.1 supports CDKTF 0.20+ and Terraform Provider null 3.x. Released monthly alongside CDKTF provider releases.","status":"active","version":"11.0.1","language":"python","source_language":"en","source_url":"https://github.com/cdktf/cdktf-provider-null.git","tags":["cdktf","terraform-cdk","terraform","null-provider","infrastructure-as-code"],"install":[{"cmd":"pip install cdktf-cdktf-provider-null","lang":"bash","label":"Install via pip"}],"dependencies":[{"reason":"Runtime dependency for CDKTF constructs","package":"cdktf","optional":false},{"reason":"Base constructs library","package":"constructs","optional":false},{"reason":"Cross-language type system used by CDKTF","package":"jsii","optional":false}],"imports":[{"note":"Provider class directly exposed from package root","wrong":"from cdktf_cdktf_provider_null.provider import NullProvider","symbol":"NullProvider","correct":"from cdktf_cdktf_provider_null import NullProvider"},{"note":"Data source is in a submodule","wrong":"from cdktf_cdktf_provider_null import DataNullDataSource","symbol":"DataNullDataSource","correct":"from cdktf_cdktf_provider_null.data_null_data_source import DataNullDataSource"},{"note":"Resource class is in its own submodule","wrong":"from cdktf_cdktf_provider_null.resource import NullResource","symbol":"NullResource","correct":"from cdktf_cdktf_provider_null.null_resource import NullResource"}],"quickstart":{"code":"from cdktf import App, TerraformStack\nfrom cdktf_cdktf_provider_null import NullProvider, NullResource\n\nclass MyStack(TerraformStack):\n    def __init__(self, scope, id):\n        super().__init__(scope, id)\n        NullProvider(self, 'null', alias='myprovider')\n        NullResource(self, 'example', triggers={'key': 'value'})\n\napp = App()\nMyStack(app, 'quickstart')\napp.synth()","lang":"python","description":"Synthesizes a minimal CDKTF stack with a null resource."},"warnings":[{"fix":"Update cdktf to >=0.20 and refer to Terraform null provider docs for v3 changes.","message":"Major version jumps: upgrade from 10.x to 11.x requires CDKTF 0.20+ and Terraform Provider null 3.x. Check provider version compatibility.","severity":"breaking","affected_versions":"10.x -> 11.x"},{"fix":"Ensure triggers map keys/values are stable or expect replacements.","message":"The 'triggers' attribute of NullResource is used for replacement logic. Modifying triggers forces resource recreation; this is expected but can cause data loss if used carelessly.","severity":"gotcha","affected_versions":"all"},{"fix":"Refer to import paths in this registry entry for correct symbols.","message":"Some older classes (like 'null.DataSource' in legacy versions) have been removed. Use the current submodule paths.","severity":"deprecated","affected_versions":"<=9.x"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run 'pip install cdktf-cdktf-provider-null' in your Python environment.","cause":"Package not installed or installed in wrong environment.","error":"ModuleNotFoundError: No module named 'cdktf_cdktf_provider_null'"},{"fix":"Use 'from cdktf_cdktf_provider_null.null_resource import NullResource'.","cause":"Import from wrong path. NullResource is not directly on the package root.","error":"AttributeError: module 'cdktf_cdktf_provider_null' has no attribute 'NullResource'"},{"fix":"Ensure you import NullProvider from cdktf_cdktf_provider_null and pass a Construct scope and string id.","cause":"Provider needs to be imported correctly and instantiated with proper scope and id.","error":"jsii.errors.JSIIError: Unknown constructor: NullProvider"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}