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

612
Views
AWS APIGateway: How do I get my API URL using AWS CLI?

I'm running a script using AWS CLI to define and deploy an AWS API Gateway. I'm able to get my API id as well as the deployment id with commands like this:

API_ID=$(aws apigateway get-rest-apis --query "items[?name=='my-api'].id" --output text)
DEPLOYMENT_ID=$(aws apigateway get-stage --rest-api-id $API_ID --stage-name dev --query "deploymentId" --output text)

Now, given that I have my API id and my deployment id, how do I get the API URL, i.e. the information appearing in the API Gateway console when you navigate to API->my-api->stages->dev ?

Many thanks in advance.

Seymour

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Simple solution is https://$API_ID.execute-api.$AWS_REGION.amazonaws.com/$STAGE_NAME

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!