Bird
0
0

You tried to deploy an API using:

medium📝 Debug Q6 of 15
AWS - API Gateway
You tried to deploy an API using:
aws apigateway create-deployment --rest-api-id 123abc
But got an error about missing stage name. How do you fix it?
AUse create-stage instead of create-deployment
BRemove the rest-api-id parameter
CAdd the --stage-name parameter with a valid stage
DRestart the AWS CLI
Step-by-Step Solution
Solution:
  1. Step 1: Identify missing required parameter

    The error indicates the --stage-name parameter is required to specify which stage to deploy to.
  2. Step 2: Correct the command

    Add --stage-name with the target stage name to fix the error.
  3. Final Answer:

    Add the --stage-name parameter with a valid stage -> Option C
  4. Quick Check:

    Missing stage name fixed by adding --stage-name [OK]
Quick Trick: Always specify --stage-name when deploying [OK]
Common Mistakes:
  • Omitting --stage-name
  • Removing rest-api-id
  • Confusing create-stage with create-deployment

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes