diff --git a/README.md b/README.md index 078b8d273..4eb07ed2e 100644 --- a/README.md +++ b/README.md @@ -86,7 +86,7 @@ name: newProject context: cognitoPoolID: xxx modules: - - source: "github.com/zthomas/commit0-terraform-basic" + - source: "github.com/commit0/commit0-aws-eks-stack" output: "infrastructure" - source: "github.com/zthomas/react-mui-kit" output: "web-app" diff --git a/internal/config/create_example.go b/internal/config/create_example.go index 72c682b0f..165a3032c 100644 --- a/internal/config/create_example.go +++ b/internal/config/create_example.go @@ -2,9 +2,10 @@ package config import ( "fmt" - "github.com/commitdev/commit0/pkg/util/exit" "io/ioutil" "path" + + "github.com/commitdev/commit0/pkg/util/exit" ) const exampleConfig = `name: %s @@ -19,7 +20,7 @@ context: # - output: "github-actions" modules: - - source: "github.com/zthomas/commit0-terraform-basic"` + - source: "github.com/commit0/commit0-aws-eks-stack"` func CreateExample(projectName string) { content := []byte(fmt.Sprintf(exampleConfig, projectName)) diff --git a/internal/context/create.go b/internal/context/create.go index 0f4074274..5ca990dba 100644 --- a/internal/context/create.go +++ b/internal/context/create.go @@ -51,22 +51,7 @@ func chooseCloudProvider(projectConfig *config.Commit0Config) { panic(err) } - if providerResult == "Amazon AWS" { - projectConfig.Infrastructure.AWS = &config.AWS{} - regionPrompt := promptui.Select{ - Label: "Select AWS Region ", - Items: []string{"us-west-1", "us-west-2", "us-east-1", "us-east-2", "ca-central-1", - "eu-central-1", "eu-west-1", "ap-east-1", "ap-south-1"}, - } - - _, regionResult, err := regionPrompt.Run() - - if err != nil { - exit.Fatal("Prompt failed %v\n", err) - } - - projectConfig.Infrastructure.AWS.Region = regionResult - } else { + if providerResult != "Amazon AWS" { exit.Fatal("Only the AWS provider is available at this time") } } diff --git a/pkg/credentials/credentials.go b/pkg/credentials/credentials.go index e2052e03e..41c1ace5a 100644 --- a/pkg/credentials/credentials.go +++ b/pkg/credentials/credentials.go @@ -94,8 +94,6 @@ func GetSecrets(baseDir string) Secrets { } } - // @TODO deprecate - // writeSecrets(secretsFile, secrets) return secrets } }