@@ -253,17 +253,16 @@ def _configure_blueprint(self):
253
253
managed_key , self .managed_blueprint_id
254
254
)
255
255
)
256
- print ("--------------------------------------------------------------------" )
257
256
258
- decision = input (
259
- "Do you need to enable the configuration for the specified environment blueprint into Amazon DataZone? (put_env_blueprint_config)? [y/n]: "
257
+ # if already enabled returns success
258
+ self .dz_client .put_environment_blueprint_configuration (
259
+ domainIdentifier = self .dz_domain_id ,
260
+ environmentBlueprintIdentifier = self .managed_blueprint_id ,
261
+ enabledRegions = [self .region ],
260
262
)
261
- if decision == "y" :
262
- self .dz_client .put_environment_blueprint_configuration (
263
- domainIdentifier = self .dz_domain_id ,
264
- environmentBlueprintIdentifier = self .managed_blueprint_id ,
265
- enabledRegions = [self .region ],
266
- )
263
+
264
+ print ("--------------------------------------------------------------------" )
265
+
267
266
return self .managed_blueprint_id
268
267
269
268
def _configure_environment (self ):
@@ -336,7 +335,7 @@ def _add_environment_action(self):
336
335
sm_env_action = item
337
336
338
337
if sm_env_action is None :
339
- self .dz_client .create_environment_action (
338
+ self .byod_client .create_environment_action (
340
339
domainIdentifier = self .dz_domain_id ,
341
340
environmentIdentifier = self .env_id ,
342
341
name = "SageMaker Environment Action Link" ,
@@ -479,10 +478,10 @@ def import_interactive(self):
479
478
self ._choose_sm_domain ()
480
479
self ._choose_dz_domain ()
481
480
self ._choose_dz_project ()
481
+ self ._configure_blueprint ()
482
482
self ._configure_environment ()
483
483
self ._tag_sm_domain ()
484
484
self ._map_users ()
485
- self ._configure_blueprint ()
486
485
self ._add_environment_action ()
487
486
self ._associate_fed_role ()
488
487
self ._link_domain ()
0 commit comments