From bd280eb8cca1ecc46efd9563db8d1217237638d9 Mon Sep 17 00:00:00 2001 From: Ben Whaley Date: Thu, 17 Feb 2022 14:13:44 -0800 Subject: [PATCH] Fixes put command when there is no config file (#30) --- parameterstore/parameterstore.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/parameterstore/parameterstore.go b/parameterstore/parameterstore.go index 7130bffe..393d21a3 100644 --- a/parameterstore/parameterstore.go +++ b/parameterstore/parameterstore.go @@ -15,7 +15,10 @@ import ( ) // Delimiter is the parameter path separator character -const Delimiter = "/" +const ( + Delimiter = "/" + DefaultParameterType = "SecureString" +) // ParameterStore represents the current state and preferences of the shell type ParameterStore struct { @@ -53,6 +56,8 @@ func (ps *ParameterStore) SetDefaults(cfg config.Config) { if cfg.Default.Type != "" { ps.Type = cfg.Default.Type + } else { + ps.Type = DefaultParameterType } // The value in the $AWS_REGION env var is most preferred