You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 5, 2022. It is now read-only.
Feature Description
Build a command line application in Golang called readplan, which takes one mandatory argument
operation and one optional argument resource
Example(s)
Valid combinations are:
readplan show
readplan select <resource_type>
The show command reads the attached Terraform state file (terraform.tfstate), and returns a
flattened json object with a list of all resources in the state file based upon the type value, for
instance:
[
“aws_s3_bucket_policy”,
“aws_s3_bucket”,
...
]
Possible Approaches or Libraries to Consider
The Select command, for a resource such as readplan select “aws_s3_bucket”
Would return a flattened json response including the name and provider values for the resource
as well as each key and its value from the instances list, for instance:
Additional context
Attached is the terraform.tfstate file to read from. I had to rename it to .txt so as to be able to attach it to this issue. You can rename back to .tfstate on your local machine
Feature Description
Build a command line application in Golang called readplan, which takes one mandatory argument
operation and one optional argument resource
Example(s)
Valid combinations are:
readplan show
readplan select <resource_type>
The show command reads the attached Terraform state file (terraform.tfstate), and returns a
flattened json object with a list of all resources in the state file based upon the type value, for
instance:
[
“aws_s3_bucket_policy”,
“aws_s3_bucket”,
...
]
Possible Approaches or Libraries to Consider
The Select command, for a resource such as readplan select “aws_s3_bucket”
Would return a flattened json response including the name and provider values for the resource
as well as each key and its value from the instances list, for instance:
Additional context
Attached is the terraform.tfstate file to read from. I had to rename it to .txt so as to be able to attach it to this issue. You can rename back to .tfstate on your local machine
terraform.tfstate.txt
The text was updated successfully, but these errors were encountered: