| 164 | } |
| 165 | |
| 166 | func chooseCloudProvider(projectConfig *projectconfig.ZeroProjectConfig) { |
| 167 | // @TODO move options into configs |
| 168 | providerPrompt := promptui.Select{ |
| 169 | Label: "Select Cloud Provider", |
| 170 | Items: []string{"Amazon AWS", "Google GCP", "Microsoft Azure"}, |
| 171 | } |
| 172 | |
| 173 | _, providerResult, err := providerPrompt.Run() |
| 174 | if err != nil { |
| 175 | exit.Fatal("Prompt failed %v\n", err) |
| 176 | } |
| 177 | |
| 178 | if providerResult != "Amazon AWS" { |
| 179 | exit.Fatal("Only the AWS provider is available at this time") |
| 180 | } |
| 181 | } |
| 182 | |
| 183 | func chooseStack(reg registry.Registry) []string { |
| 184 | showInfoBox("A stack is a group of Zero modules. They will be pulled in from the registry and templated to create the different parts of your project such as infrastructure, backend, frontend, etc.") |