https://pulumi.com logo
Title
r

refined-terabyte-65361

09/21/2021, 7:37 PM
Hello I am trying to use pulumi to deploy aws elasticsearch I am getting id attached to domain name while creating resource how to make domain name to be static instead of attaching id
const domainName = "example";
const example = new aws.elasticsearch.Domain(domainName, {
  clusterConfig: {
    instanceType: "r4.large.elasticsearch",
  },
  elasticsearchVersion: "7.10",
  ebsOptions: {
    ebsEnabled: true,
    volumeSize: 10,
  },
  tags: {
    Domain: "TestDomain",
  },
});
output:
example-03ef750
Expecting
example
r

refined-terabyte-65361

09/21/2021, 10:56 PM
Hello @billowy-army-68599 What is the corresponding option if i want to choose Public access for Network configuration ?
i only see vpcOptions
b

billowy-army-68599

09/21/2021, 10:57 PM
vpcOptions
is optional, if you don't specify that it'll be public. I think, I'm not super familiar with this resource
r

refined-terabyte-65361

09/21/2021, 11:01 PM
Oh ok I will try that
@little-cartoon-10569 sorry for tagging wanted check if you have some idea to help me I dont see saml option i only see cognitoOptions https://www.pulumi.com/docs/reference/pkg/aws/elasticsearch/domain/#inputs how can i enable saml? Thanks
b

billowy-army-68599

09/22/2021, 12:20 AM
@refined-terabyte-65361 please try not to tag individuals in your requests, it creates a burden for our community members. If you need help, post a new thread for each question
r

refined-terabyte-65361

09/22/2021, 12:20 AM
ya sure
l

little-cartoon-10569

09/22/2021, 2:21 AM
According to this page, it's only done via AdvancedSecurityOptions: https://docs.aws.amazon.com/opensearch-service/latest/developerguide/saml.html
I don't know if it's possible to ignore the strong casting on this property in Pulumi? If you could put the JSON in there directly, it would be easy enough.
Ah, there's a whole extra resource for it.. silly old Terraform... https://www.pulumi.com/docs/reference/pkg/aws/elasticsearch/domainsamloptions/