Hello I am trying to use pulumi to deploy aws elas...
# typescript
r
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
Copy code
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:
Copy code
example-03ef750
Expecting
Copy code
example
r
Hello @billowy-army-68599 What is the corresponding option if i want to choose Public access for Network configuration ?
i only see vpcOptions
b
vpcOptions
is optional, if you don't specify that it'll be public. I think, I'm not super familiar with this resource
r
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
@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
ya sure
l
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/