mirror of
https://github.com/bluxmit/alnoda-workspaces.git
synced 2024-07-01 12:41:05 +12:00
57 lines
1.2 KiB
Markdown
57 lines
1.2 KiB
Markdown
|
## Ansible tools
|
||
|
|
||
|
|
||
|
|
||
|
## Terraform tools
|
||
|
|
||
|
|
||
|
### Pre-commit hook
|
||
|
|
||
|
|
||
|
### [Blast-Radius](https://github.com/28mm/blast-radius)
|
||
|
Serves folder `/home/terraform`
|
||
|
|
||
|
In order to serve another terraform folder, for example `/home/project/my-terraform`
|
||
|
```
|
||
|
blast-radius --serve --port 8033 /home/project/my-terraform
|
||
|
```
|
||
|
|
||
|
### [Terraform Visual](https://github.com/hieven/terraform-visual)
|
||
|
|
||
|
- Generate Terraform plan in json
|
||
|
```
|
||
|
terraform plan -out=plan.out # Run plan and output as a file
|
||
|
terraform show -json plan.out > plan.json # Read plan file and output it in JSON format
|
||
|
```
|
||
|
- Generate Terraform-visual report
|
||
|
```
|
||
|
terraform-visual --plan plan.json
|
||
|
```
|
||
|
|
||
|
### [Terraform Graph](https://www.terraform.io/docs/cli/commands/graph.html)
|
||
|
|
||
|
- Create report
|
||
|
```
|
||
|
terraform graph | dot -Tsvg > graph.svg
|
||
|
```
|
||
|
|
||
|
|
||
|
### [Inframap](https://github.com/cycloidio/inframap)
|
||
|
|
||
|
- Visualize terraform state
|
||
|
```
|
||
|
inframap generate terraform.tfstate | dot -Tpng > graph.png
|
||
|
```
|
||
|
|
||
|
|
||
|
### [Rover](https://github.com/im2nguyen/rover)
|
||
|
|
||
|
- serve terraform visualisation
|
||
|
```
|
||
|
rover --workingDir /home/terraform
|
||
|
```
|
||
|
NOTE: Rover serves only on port 9000
|
||
|
|
||
|
## Tutorials
|
||
|
|
||
|
- [Deploy Cloud Instances with Packer and Terraform](https://www.scaleway.com/en/docs/deploy-cloud-servers-with-packer-and-terraform/)
|