https://pulumi.com logo
Title
b

brief-spoon-92183

06/25/2022, 3:01 PM
Hi everyone, I’m deploying an AWS OpenSearch domain, alongside my old AWS ElasticSearch, and there’s one very important difference in how the domain name works: for ES, a unique suffix is appended to the domain, but for OS, it’s not 😮 Is this a bug, or is this how it’s supposed to be? If it’s expected, then how can we elegantly handle uniqueness across dozens of deployments? 🤔 Thanks!
This is how the OpenSearch domain is configured. For some reason, the
domainName
config key is required (unlike in all other resources):
Found this (https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/opensearch_domain) so I guess this question is more towards Terraform, rather than Pulumi. It still makes things a lot more complicated 😞
b

billowy-army-68599

06/25/2022, 4:05 PM
Are you asking why there's a random suffix? Or why there isn't one?
b

brief-spoon-92183

06/25/2022, 4:24 PM
Why there isn’t one. ElasticSearch has one, which is great (we got used to this commodity of not having to worry about uniqueness of resources). But OpenSearch resource doesn’t generate one, which is an issue.
b

billowy-army-68599

06/25/2022, 4:34 PM
Got it, you can create one using the random provider and append it to the name as a workaround, but could you cut an issue for this so we can add the randomness back in the provider?
🙌 1
b

brief-spoon-92183

06/25/2022, 6:55 PM
@billowy-army-68599 Here’s the issue: https://github.com/pulumi/pulumi-aws/issues/2023
And thanks for the https://github.com/pulumi/pulumi-random tip, I didn’t know about this 🍻