localstack / localstack/serverless-localstack
Static API Gateway V1 Endpoints
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- JavaScript
- Sterne
- 542
- Forks
- 92
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Hi team 👋
Context
My project is using localstack + severless.
I have my lambda function and I want to deploy to the localstack environment. After I deployed successfully, I find out that the endpoints (check screenshot below) is printing out in the stdout with a random rest-api-id (from the screenshot it is q7yho9op8e)
I cannot find a localstack-severless documentation to teach me how to have the static URL (since the above rest-api-id keep changing after each localstack deployment)
But I found this localstack doc, which provides a way to have the static URL by passing the tag 'custom_id ' to localstack api creation.
I also found that there is a way to pass the tag to the Api Gateway V1 by following this serverless doc
Test Process
- spin up the localstack by run command
localstack start - deploy the lambda to localstack by running
sls deploy --stage local --config serverless.local.yml - check endpoints from sls deploy stdout
Expected
I am expecting the api endpoint should looks like
http://localhost:4566/restapis/tagsMyId123/local/user_request or http://localhost:4566/restapis/stackTagsMyId123/local/user_request
Actual
As the result, the URL is still not static after deployment with tag set in the severless.yml (check screenshot below)
Questions:
- Does localstack-serverless plugin support the feature that mentioned in the localstack doc?
- Is there a way I can have the static URL since I need the static URL to run my e2e testing.
Many thanks 🙏
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Reproduziere das Deployment mit localstack start und sls deploy --stage local --config serverless.local.yml unter Verwendung der in serverless.yml gezeigten Tags. Vergleiche den generierten API Gateway V1-Endpunkt über mehrere Deployments hinweg und untersuche die an der API-Erstellung beteiligten Plugin-Einstiegspunkte. Als abgeschlossen gilt die Ermittlung, ob die angeforderte statische URL unterstützt wird, sowie die Dokumentation oder Implementierung des erforderlichen Verhaltens.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- javascript
- Bereich
- api
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100