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',
Traceback (most recent call last):
File "<stdin>", line 2, in <module>
NameError: name 'sample_environment' is not defined
Please help me regarding this.