-
Notifications
You must be signed in to change notification settings - Fork 23
API lambda adjustments #1666
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API lambda adjustments #1666
Conversation
|
||
var app = builder.Build(); | ||
|
||
var v1 = app.MapGroup("/v1"); | ||
var v1 = app.MapGroup("/docs/_api/v1"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need a few reserved namespaces in the markdown build :). I have /docs/api
for the OpenAPI too.
@@ -31,5 +31,4 @@ RUN arch=$TARGETARCH \ | |||
&& if [ "$arch" = "amd64" ]; then arch="x64"; fi \ | |||
&& echo $TARGETOS-$arch > /tmp/rid | |||
|
|||
RUN dotnet publish src/infra/docs-lambda-index-publisher -r linux-x64 -c Release | |||
|
|||
RUN dotnet publish src/infra/docs-lambda-index-publisher -r $(cat /tmp/rid) -c Release |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to do the same here: https://github.com/elastic/docs-builder/blob/main/src/infra/docs-lambda-index-publisher/lambda.DockerFile ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hehe, I unintentionally changed the wrong file..
I will keep as is, because it works.
1845aaf
to
fe1f37c
Compare
cloudfront is passing the full path to API gateway
…the INVOKE phase the ssm parameter lambda exention does not work at INIT time
fe1f37c
to
37f32ef
Compare
Changes
Post adjustments to make the lambda work:
/docs/_api
prefix, because cloudfront passes the whole path to API gateway