LoslegenKostenlos starten

Configure stage variables

At NovaTech, you're managing a checkout API with three environments: dev, staging, and prod. Each environment needs to call a different Lambda alias and connect to a different DynamoDB table.

Use the stage variable configurator to set up the correct variables for each stage. The configurator shows how API Gateway resolves ${stageVariables.lambdaAlias} and ${stageVariables.tableName} at runtime for each environment.

Experiment with different variable values to see how the same API definition serves three environments without any code changes.

Question: If the prod stage has lambdaAlias=prod and the API Gateway integration is configured as arn:aws:lambda:us-east-1:123456789012:function:payments:${stageVariables.lambdaAlias}, what is the full ARN that API Gateway invokes when a request hits the prod stage?

Diese Übung ist Teil des Kurses

<Kurs>Automating Deployments on AWS</Kurs>
Kurs ansehen

Interaktive praktische Übung

Verwandle Theorie mit einer unserer interaktiven Übungen in die Praxis

Übung starten