https://pulumi.com logo
m

modern-bear-85657

07/22/2019, 10:30 PM
How should I lookup the endpoint of an existing ElasticSearch cluster?
b

broad-dog-22463

07/22/2019, 10:34 PM
Hi @modern-bear-85657 Is this an existing ElasticSearch cluster not managed by Pulumi?
m

modern-bear-85657

07/23/2019, 11:33 AM
Yes. We’re in the process of converting our existing automation to Pulumi. So, we’re doing a lot of lookups.
b

broad-dog-22463

07/23/2019, 4:23 PM
There is no way to do a specific lookup for ElasticSearch Domain - but you could import this into pulumi management and then be able to use it
m

modern-bear-85657

07/23/2019, 4:26 PM
I found this:
Copy code
const es = new <http://AWS.ES|AWS.ES>({ region })
    const domain = await es.describeElasticsearchDomain({ DomainName: `my-cluster` }).promise()
Something similar should be added to pulumi.