Quick question... Is their a more Metaflow-y way ...
# ask-metaflow
a
Quick question... Is their a more Metaflow-y way of getting the ec2 instance id of the step being run on
@batch
? We are doing this as a workaround:
Copy code
url = "<http://169.254.169.254/latest/meta-data/instance-id>"
response = requests.get(url, timeout=2)
print(response.text)
1
a
It should be available in task metadata
a
Ah ok nice. Thanks Savin!