After creating an environment through python sdk, when I am trying to create a deployment using the scripts I am getting the error described bellow:
>>>deployment_builder = sch.get_deployment_builder(deployment_type='SELF')
>>> # sample_environment is an instance of streamsets.sdk.sch_models.SelfManagedEnvironment
>>> deployment = deployment_builder.build(deployment_name='Sample Deployment',
... environment=sample_environment,
... engine_type='DC',
... engine_version='4.1.0',
... deployment_tags=>'self-managed-tag'])
Traceback (most recent call last):
File "<stdin>", line 2, in <module>
NameError: name 'sample_environment' is not defined
Please help me regarding this.