Programmatically create a data flow file in Sagemaker Studio

0

I am using Sagemaker Studio and would like to create a flow file with Python, rather than using the UI. When I create a flow file using the UI and then open it in the editor, I can see all of the parameters, including my input source query (Athena). The only components that I don't understand are the node_id values.

Is this possible? How are the node_id values generated?

1 réponse
0
Réponse acceptée

I've played around with programmatically editing .flow files in the past, and believe that so long as you choose something that's 1) unique within the file and 2) not containing any unsupported character types, the flow should still work fine.

If I remember correctly, in Python something like the below with the built-in standard uuid library should produce usable IDs in a very similar format:

from uuid import uuid4
node_id = str(uuid4())
AWS
EXPERT
Alex_T
répondu il y a 10 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions