What's the general approach for creating a service...
# aws
e
What's the general approach for creating a service discovery service using an SRV record type for the
DnsConfig
? It appears that
type
is expected to be
HTTP
,
HTTPS
, or
TCP
, but the code example shows using type
A
, and AWS's docs mention the possibility to use
SRV
.
l
There's an error in the docs there. That "type" doc is the one from ServiceHealthCheckConfig, not ServiceDnsConfigDnsRecord
That error might go all the way back to Terraform. It's certainly in the Pulumi source code.
Nope, it's correct in Terraform docs:
(Required, ForceNew) The type of the resource, which indicates the value that Amazon Route 53 returns in response to DNS queries. Valid Values: A, AAAA, SRV, CNAME
See this link for now: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/service_discovery_service You could raise an issue for Pulumi. Not sure if it would go in AWS or docs... 🤔
e
It's definitely in the source code too, it's messing with the Typescript types. Would this be under
pulumi/pulumi-aws
?
l
What's wrong with the types? Only the comment is wrong...
The ServiceDnsConfigDnsRecord type has
ttl
and
type
properties, which is correct.
e
It might just be the comment. I was expecting that if using an SRV record a port would need to be added as well. Though that may need to be managed at the
Service
instead of the
ServiceDiscoveryService
l
You can raise it in pulumi/pulumi-aws, if there's a better place they'll link to it.
👍 1