<@UB89GSWCF> do you know if there are any of these...
# atmos-dev
e
@Andriy Knysh (Cloud Posse) do you know if there are any of these unsupported commands we actually support? @Shubham Tholiya is helping us clean up
atmos terraform --help
a
do you know if there are any of these unsupported commands we actually support?
atmos terrafrom xxx
(and
atmos helmfile xxx
) are special cases in the sense that we did not hardcode any of the native sub-commands in Cobra
all of that is "transparent" and just sent to the native
terraform/tofu/helmfile
CLI
that made the code more "convoluted", but allows us to support any new subcommands they release w/o updating the Atmos code
I would say we support many (if not all) of those subcommands, maybe except the ones with a diff invocation sysntax
and b/c of that "transparency", we can't use the native Cobra help functionality
we had to implement
atmos terrafrom --help
by ourselves (which is the point of this discussion)
e
It’s less important that we support any new command in terraform
What is most useful is a cli help menu that is consistent with the product
So we are adding the commands to the cobra menu and not trying to be clever
So I say, unless we have tested the command and verified it works, it should be unsupported
Rather than “supported” and broken
a
atmos terraform output component -s stack
has the same syntax as
atmos terraforn apply
, and is used all the time
atmos terraform force-unlock component -s stack --force lock ID
- used all the time
atmos terraform import component -s stack ADDRESS ID
- used all the time
atmos terraform show <component> -s <stack>
- works and has the same syntax as
atmos terraform plan
the rest are not used often (if at all), we need to confirm them
e
Ok, great
@Shubham Tholiya let’s verify these flags and usage are available with help
a
atmos terraform validate <component> -s <stack>
should work too
s
cool thanks for letting me know
e
Also, I see we're missing
deploy
And
shell
subcommands
s
i guess that might be native to atmos terraform command right? because in terraform i don't see it
a
atmos terraform deploy <component> -s <stack>
atmos terraform shell <component> -s <stack>
these are atmos command, not present in terraform
e
image.png
These commands should go under the top section, of atmos-native commands like
generate