run-x / opta

The next generation of Infrastructure-as-Code. Work with high-level constructs instead of getting lost in low-level cloud configuration.
https://docs.opta.dev
Apache License 2.0
906 stars 61 forks source link

Do not require input variables in non apply/deploy commands on Opta CLI #907

Closed lfvarela closed 2 years ago

lfvarela commented 2 years ago

What happened:

I've noticed that all opta cli commands require you to pass input variables when they shouldn't be required. For example, I have the following one in my service file: input_variables:

What you expected to happen:

But if I want to shell into my running container with opta shell, see logs, etc, I shouldn't need to specify these, but the cli requires me to.

One option is to mark them as optional (put a sane default) but I want them to be required when applying / deploying the YAML but not for everything else.

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

Environment:

juandiegopalomino commented 2 years ago

fix merged!