Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

1K
Views
AWS Lambda Rest API: un hermano ({id}) de este recurso ya tiene una parte de ruta variable; solo se permite una No se puede crear el recurso en la ruta

Soy particularmente nuevo en Lambda y en AWS en general. Estoy tratando de configurar un servicio API REST simple con Lambda. He usado CloudFormat y CodePipeline para tener una aplicación Express simple. Estoy tratando de averiguar por qué durante la fase de implementación , durante ExecuteChangeSet tengo este error:

Errors found during import: Unable to create resource at path '/stations/{stationId}/allowedUsers': A sibling ({id}) of this resource already has a variable path part -- only one is allowed Unable to create resource at path '/stations/{stationId}/allowedUsers/{userId}': A sibling ({id}) of this resource already has a variable path part -- only one is allowed

Esto es lo que tengo dentro de la plantilla.yml

 Events: AllowedUsers: Type: Api Properties: Path: /stations/{stationId}/allowedUsers Method: get AddAllowedUsers: Type: Api Properties: Path: /stations/{stationId}/allowedUsers Method: post DeleteAllowedUsers: Type: Api Properties: Path: /stations/{stationId}/allowedUsers/{userId} Method: delete GetAllowedUser: Type: Api Properties: Path: /stations/{stationId}/allowedUsers/{userId} Method: get

Busqué un poco este error pero no estoy seguro de cómo resolverlo.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Para mí, el problema era diferente de lo que se describe en el problema de GitHub que Bryan mencionó.

Estaba usando dos nombres de parámetros diferentes . Terminar la refactorización y usar un solo nombre de identificación solucionó el problema.

Ejemplo:

 DeleteAllowedUsers: Type: Api Properties: Path: /stations/{stationId}/allowedUsers/{id} Method: delete GetAllowedUser: Type: Api Properties: Path: /stations/{stationId}/allowedUsers/{userId} Method: get
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!