This message was deleted.
# general
s
This message was deleted.
b
You need to use tags to add instance names. Add a tags dict and then one of the tags being name
💯 1
a
Glad to know that, it works, Thanks @broad-dog-22463
Just a qq Paul, is there any way i can retrieve Instance id, Instance IP and so If i need to append it to list or tuple for further use in a program! @broad-dog-22463
b
@alert-raincoat-81485 those values are available as outputs of the instance class
a
Not sure how to use that. is there any example available? @broad-dog-22463
Apologies, i am practically new to Pulumi
Did that help @alert-raincoat-81485?
a
Yes just checked, i was able to retrieve the value for IDs, using export. Thanks for your quick help Paul. I really appreciate. @broad-dog-22463
b
👍
a
@broad-dog-22463 If i want to append the Instance Id value to list, it doesn't work with pulumi.export(name: instance.id) because of the different format, If i am not wrong it;s just throws an output at command line but what if i want to store/append value in a list.
Copy code
a.append(pulumi.export(Instances.id))
I tried to do so but no luck
This is bit confusing
b
Don’t use Pulumi.export - that is exporting it outside of the program to the cli
a
a.append((Instances.id)), also tried using this.
is that the correct format to use? if i want to append instance IDs to the list whenever it generates using loop?
b
Yes append works
a
Sounds good
@broad-dog-22463 Hi Paul, sorry to interrupt. I would like to know how can we register instances to the service discovery's service. I do not see API for that. https://www.pulumi.com/docs/reference/pkg/aws/servicediscovery/service/ Any help
b
There is currently no API for that
a
Oh so there is no other way registering instance to service discovery?
b
there isn't anything via Pulumi
I am not sure about other ways