This message was deleted.
# aws
s
This message was deleted.
b
There are a few API gateway-specific things to do - one sec I have an example
b
Thanks @bumpy-grass-54508 I actually found it. The output is part of a different resource in Pulumi. It's an output of domain name 🙂
b
I'm using dotnet, and my setup looks like this:
Copy code
var apiGw = new ApiGatewayV2.Api(...);

var httpsCert = new Acm.Certificate(...); // and dns validation and verification and all that

var apiGwDomainName = new ApiGatewayV2.DomainName("apigw-domain-name", new {
    Domain = "<http://my-domain-name.com|my-domain-name.com>",
    DomainNameConfiguration = new {
        ...
        CertificateArn = httpsCert.CertificateArn,
        EndpointType = "REGIONAL", // might be specific to me, idk if you need this
    }
});

var dnsRecord = new Route53.Record(.., new {
    Name = "<http://my-domain-name.com|my-domain-name.com>",
    ZOneId = ...,
    Type = A,
    Aliases = new {
        Name = apiGwDomainName.DomainNameConfiguration.Apply(x => x.TargetDomainName),
        ZoneId = apiGwDomainName.DomainNameConfiguration.Apply(x => x.HostedZoneId),
        EvaluateTargetHealth = false,
    }
});
ah dang beat me to it haha
b
thanks anyway !!
b
you got it 👍