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 Answer
0
Accepted Answer

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
answered 10 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions