localstack / localstack/serverless-localstack
Static API Gateway V1 Endpoints
Ninguém assumiu esta issue ainda.
- Linguagem predominante
- JavaScript
- Estrelas
- 542
- Forks
- 92
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
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 🙏
Guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Direção de pesquisa
Reproduza o deployment com localstack start e sls deploy --stage local --config serverless.local.yml, usando as tags mostradas em serverless.yml. Compare o endpoint do API Gateway V1 gerado entre os deployments e inspecione os pontos de entrada do plugin envolvidos na criação da API. Considera-se concluído quando for determinado se a URL estática solicitada é compatível e o comportamento necessário tiver sido documentado ou implementado.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- javascript
- Domínio
- api
- Tipo de issue
- Funcionalidade
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 35/100