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?
The stage name can be set using the StageName property:
StageName
https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-resource-api.html#sam-api-stagename
您尚未登入。 登入 去張貼答案。
一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。