Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Static API Gateway V1 Endpoints

Aperta
#270 0 commenti 3 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
javascript
Ambito
api

Direzione di ricerca

Riproduci il deployment con localstack start e sls deploy --stage local --config serverless.local.yml, usando i tag mostrati in serverless.yml. Confronta l’endpoint API Gateway V1 generato tra i deployment e ispeziona gli entry point del plugin coinvolti nella creazione dell’API. Il lavoro è completato quando è stato determinato se l’URL statico richiesto è supportato e il comportamento necessario è stato documentato o implementato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

aws:apigateway status: backlog

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)
Screenshot 2024-11-08 at 11 24 14 AM

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.
Screenshot 2024-11-08 at 11 25 46 AM

I also found that there is a way to pass the tag to the Api Gateway V1 by following this serverless doc
image

Test Process
  1. spin up the localstack by run command localstack start
  2. deploy the lambda to localstack by running sls deploy --stage local --config serverless.local.yml
  3. 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)
Screenshot 2024-11-08 at 11 30 13 AM

Questions:
  1. Does localstack-serverless plugin support the feature that mentioned in the localstack doc?
  2. Is there a way I can have the static URL since I need the static URL to run my e2e testing.

Many thanks 🙏

Lingua principale
JavaScript
Stelle
542
Fork
92
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di localstack/serverless-localstack

Tutte le issue di localstack/serverless-localstack

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.