func (s *stacker) CreateStack(appName string, createSecretsPrincipal string, fetchSecretsRole string) (*cloudformation.Stack, error) {
	stackName := getStackName(appName)
	stack, err := s.describeStack(stackName)
	if err != nil {
		log.Infof("Unable to describe stack: %s, creating a new one", stackName)

		return s.createStack(appName, createSecretsPrincipal, fetchSecretsRole)
	}

	log.Infof("Returning existing stack: %s", stackName)
	return stack, nil
}
// CreateStack creates the cloudformation stack
CreateStack creates the cloudformation stack
// CreateStack creates the cloudformation stack
func (s *stacker) CreateStack(appName string, createSecretsPrincipal string, fetchSecretsRole string) (*cloudformation.Stack, error) {
	stackName := getStackName(appName)
	stack, err := s.describeStack(stackName)
	if err != nil {
		log.Infof("Unable to describe stack: %s, creating a new one", stackName)
		return s.createStack(appName, createSecretsPrincipal, fetchSecretsRole)
	}
	log.Infof("Returning existing stack: %s", stackName)
	return stack, nil
}
func ( s * stacker ) CreateStack ( appName string , createSecretsPrincipal string , fetchSecretsRole string ) ( * cloudformation . Stack , error ) { stackName := getStackName ( appName ) stack , err := s . describeStack ( stackName ) if err != nil { log . Infof ( " " , stackName ) return s . createStack ( appName , createSecretsPrincipal , fetchSecretsRole ) } log . Infof ( " " , stackName ) return stack , nil }
CreateStack creates the cloudformation stack
CreateStack creates the cloudformation stack