Fix `terraform backend generate component` command. Add `version` command @aknysh (#23)
what
- Fix
terraform backend generate component
command while keeping JSON pretty printing - Add
version
command
why
jq
interraform backend generate component
command was just outputting tostdout
, not to the backend file- Simplify
terraform backend generate component
command atmos version
command is useful to show the CLI version
references
- Closes #18
test
> atmos terraform backend generate component vpc -s uw2-demo
{
"terraform": {
"backend": {
"s3": {
"acl": "bucket-owner-full-control",
"bucket": "xxxxx-uw2-root-tfstate",
"dynamodb_table": "xxxxxx-uw2-root-tfstate-lock",
"encrypt": true,
"key": "terraform.tfstate",
"region": "us-west-2",
"role_arn": "arn:aws:iam::xxxxxxx:role/xxxxxx-gbl-root-terraform",
"workspace_key_prefix": "vpc"
}
}
}
}
> atmos version
0.16.0