How should the application be deployed while minimizing the number of resources to manage?
Create a separate API Gateway and separate Lambda function for each environment in the same Region.
Assign a Region for each environment and deploy API Gateway and Lambda to each Region.
Create one API Gateway with multiple stages with one Lambda function with multiple aliases.
Create one API Gateway and one Lambda function, and use a REST parameter to identify the environment.
Explanations:
Creating separate API Gateway and Lambda functions for each environment increases the number of resources to manage, which is not efficient for this use case.
Assigning separate Regions for each environment adds unnecessary complexity and increases resource management overhead.
Using one API Gateway with multiple stages and one Lambda function with aliases allows for easier management with minimal resources. Stages and aliases help separate environments efficiently.
Using a REST parameter to identify the environment is not a best practice for isolating environments as it does not provide clear separation, and can lead to errors in handling requests.