binbashar / leverage

Binbash Leverage CLI intended to orchestrate Leverage Reference Architecture for AWS (www.binbash.co/leverage)
https://pypi.org/project/leverage/
Apache License 2.0
17 stars 2 forks source link

BUG | init won´t check short project name length #235

Closed juanmatias closed 5 months ago

juanmatias commented 8 months ago

Describe the Bug

When doing

leverage project init

...setting a short project name longer than 4 chars, and then:

leverage project create

...the project is created with no issue.

Finally, when trying to create credentials:

leverage credentials configure  ...

It fails with:

ERROR    Invalid or missing project short name in project.yaml file.

When doing the same with a short name shorted or equal than 4 chars it works ok.

Expected Behavior

The short project name should be checked in the first instance to avoid problems after the create step.

Steps to Reproduce

Steps to reproduce the behavior:

  1. init project
  2. edit the project.yaml file and set a short name longer than 4 chars
  3. create project
  4. go to a layer and try to set credentials

Environment (please complete the following information):

❯ leverage --version
leverage, version 1.12.0-rc2

#