By using AWS re:Post, you agree to the AWS re:Post Terms of Use

SAM cli template: how to specify 'staging' instead of 'Prod" in api gateway route?

0

I am playing witn sam init. Created hello world typescript example When deployed, it creates "/Prod/hello"

I want to speciify (in an .env if possible) the first segment as "staging" , "dev", "prod" ... instead of "Prod".

How can I change this prefix in sam cli template?

1 Answer
0
profile pictureAWS
answered 20 days ago
profile picture
EXPERT
reviewed 17 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions