In Annotations Framework, is it possible to set up a custom domain for an HttpApi in your serverless.template? #1681
-
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"
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.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@lorenh Based on discussion with the team, Thanks, |
Beta Was this translation helpful? Give feedback.
@lorenh Based on discussion with the team,
HttpApi
does supportDomain
here in CloudFormation. But looks like we don't support configuring that through the[HttpApi]
attribute. Converted this discussion to feature request #1703 to get it reviewed with the team since we also might think to investigate other attributes to support (not justDomain
).Thanks,
Ashish