aws / aws/aws-lambda-dotnet

In Annotations Framework, is it possible to set up a custom domain for an HttpApi in your serverless.template?

Offen
#1,703 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
annotations feature-request p2 queued
Vorherrschende Sprache
C#
Sterne
1.7k
Forks
503
Ø Merge
1 T. 18 Std.
Gemergte PRs (30 T.)
21

Beschreibung

### Discussed in https://github.com/aws/aws-lambda-dotnet/discussions/1681

Originally posted by **lorenh** February 26, 2024
We are used to setting up custom domains for our REST APIs in the aspnetcore webapi-style projects directly in our serverless templates using something like this (where all the !Ref's are passed in as parameters). Now I'm experimenting with the "HttpApi" and don't see the equivalent Domain settings under it as I saw under "Api"

```
:
Globals:
Api:
Domain:
DomainName: !Ref DomainName
CertificateArn: !Ref CertificateArn
EndpointConfiguration: EDGE
Route53:
HostedZoneName: !Ref HostedZoneName
```

HttpApi appears to only support AccessLogSettings, Auth, StageVariables and Tags. I guess this is more of a SAM or CloudFormation question, but was hoping someone out here has figured out a way to configure it directly in your serverless template.

```
:
Globals:
HttpApi:
Domain: <===== ERROR
DomainName: !Ref DomainName
CertificateArn: !Ref CertificateArn
EndpointConfiguration: EDGE
Route53:
HostedZoneName: !Ref HostedZoneName
```

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Start with the linked discussion 1681 and the serverless.template examples in this issue, then verify whether AWS SAM or CloudFormation supports custom domains under Globals.HttpApi. Done means establishing whether an equivalent configuration exists and, if so, identifying the supported template settings or documenting the limitation.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
aws
Bereich
api, cloud
Issue-Typ
Feature
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
28/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.