Steampipe Plugin Terraform

Use SQL to instantly query resources, data sources and more from Terraform code. Open source CLI. No DB required.
Alternatives To Steampipe Plugin Terraform
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Devops Exercises43,460
4 days ago14otherPython
Linux, Jenkins, AWS, SRE, Prometheus, Docker, Python, Ansible, Git, Kubernetes, Terraform, OpenStack, SQL, NoSQL, Azure, GCP, DNS, Elastic, Network, Virtualization. DevOps Interview Questions
Steampipe5,28136 hours ago352September 20, 2022245agpl-3.0Go
Use SQL to instantly query your cloud services (AWS, Azure, GCP and more). Open source CLI. No DB required.
Terraform Google Sql Db229
2 days ago33apache-2.0HCL
Creates a Cloud SQL database instance
Terraform Google Sql86
2 months agoapache-2.0Go
Terraform modules for deploying Google Cloud SQL (e.g. MySQL, PostgreSQL) in GCP
Citrix Vad Lab55
6 months ago1PowerShell
Build a Citrix Virtual Apps and Desktop environment with Ansible and Terraform
Devops Books25
15 days agomit
Curated DevOps Books
Terraform Provider Mssql24
6 months ago15mitGo
Terraform provider for Microsoft SQL Server
Steampipe Plugin Terraform21
2 months ago7February 14, 20221apache-2.0Go
Use SQL to instantly query resources, data sources and more from Terraform code. Open source CLI. No DB required.
Azure Vdc18
10 months agomitJavaScript
Automated VDC on Azure
Steampipe Mod Terraform Aws Compliance16
6 months ago2apache-2.0HCL
Run compliance and security controls to detect Terraform AWS resources deviating from security best practices prior to deployment.
Alternatives To Steampipe Plugin Terraform
Select To Compare


Alternative Project Comparisons
Readme

image

Terraform Plugin for Steampipe

Use SQL to query data from Terraform configuration files.

Quick start

Install the plugin with Steampipe:

steampipe plugin install terraform

Configure your config file to include directories with Terraform configuration files. If no directory is specified, the current working directory will be used.

Run steampipe:

steampipe query

Query all resources in your Terraform files:

select
  name,
  type,
  jsonb_pretty(arguments) as args
from
  terraform_resource;
> select name, type, jsonb_pretty(arguments) as args from terraform_resource;
+------------+----------------+--------------------------------------------+
| name       | type           | args                                       |
+------------+----------------+--------------------------------------------+
| app_server | aws_instance   | {                                          |
|            |                |     "ami": "ami-830c94e3",                 |
|            |                |     "tags": {                              |
|            |                |         "Name": "ExampleAppServerInstance" |
|            |                |     },                                     |
|            |                |     "instance_type": "t2.micro"            |
|            |                | }                                          |
| app_volume | aws_ebs_volume | {                                          |
|            |                |     "size": 40,                            |
|            |                |     "tags": {                              |
|            |                |         "Name": "HelloWorld"               |
|            |                |     },                                     |
|            |                |     "availability_zone": "us-west-2a"      |
|            |                | }                                          |
| app_bucket | aws_s3_bucket  | {                                          |
|            |                |     "acl": "private",                      |
|            |                |     "tags": {                              |
|            |                |         "Name": "Test bucket",             |
|            |                |         "Environment": "Dev"               |
|            |                |     },                                     |
|            |                |     "bucket": "my-app-bucket"              |
|            |                | }                                          |
+------------+----------------+--------------------------------------------+

Developing

Prerequisites:

Clone:

git clone https://github.com/turbot/steampipe-plugin-terraform.git
cd steampipe-plugin-terraform

Build, which automatically installs the new version to your ~/.steampipe/plugins directory:

make

Configure the plugin:

cp config/* ~/.steampipe/config
vi ~/.steampipe/config/terraform.spc

Try it!

steampipe query
> .inspect terraform

Further reading:

Contributing

Please see the contribution guidelines and our code of conduct. All contributions are subject to the Apache 2.0 open source license.

help wanted issues:

Popular Terraform Projects
Popular Sql Projects
Popular Configuration Management Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Go
Postgresql
Sql
Terraform