Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

README: Added documentation on how to generate graph from HTTP backend #181

Merged
merged 1 commit into from
Apr 20, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,11 @@ By default unconnected nodes are removed, you can use `--clean=false` to prevent

Terraform allows users to use `backends` (S3, Google Cloud Storage, Swift, etc.) in order to store the `terraform.state`. We currently do not support graph generation from `tfstate` stored in such backends. As mentioned in this [issue](https://github.com/cycloidio/inframap/issues/44), it is possible to play around `stdin/out` to generate graph from Terraform backends.

| backend | command |
|---------|----------------------------------------------------------------------------------|
| backend | command |
|---------|--------------------------------------------------------------------------|
| S3 | `aws s3 cp s3://bucket/path/to/your/file.tfstate - \| inframap generate` |
| GCS | `gsutil cat gs://bucket/path/to/your/file.tfstate \| inframap generate` |
| HTTP | `terraform state pull \| inframap generate` |

## License

Expand Down