change default aws linux instance type to t3.micro, reduce default template TTL (#2776)

- make default template max TTL 24 hours (still less than 168)
- make default workspace autostop 2 hours unless specified otherwise
- add instance type selector to aws templates
This commit is contained in:
Cian Johnston
2022-07-12 19:37:59 +01:00
committed by GitHub
parent c07a45e610
commit 5e6320163d
4 changed files with 36 additions and 4 deletions

View File

@ -32,7 +32,7 @@ import (
"github.com/coder/coder/codersdk"
)
const workspaceDefaultTTL = 12 * time.Hour
const workspaceDefaultTTL = 2 * time.Hour
func (api *API) workspace(rw http.ResponseWriter, r *http.Request) {
workspace := httpmw.WorkspaceParam(r)