turbot / steampipe-plugin-terraform

Use SQL to instantly query resources, data sources and more from Terraform code. Open source CLI. No DB required.
https://hub.steampipe.io/plugins/turbot/terraform
Apache License 2.0
28 stars 3 forks source link

Table `terraform_resource` column `arguments` not showing field named `type` #98

Closed karanpopat closed 5 months ago

karanpopat commented 6 months ago

Below results should have the type inside the arguments json

> select name,jsonb_pretty(arguments) as arguments from terraform_resource where name = 'aws_iam_regional_access_analyzer_source'
+-----------------------------------------+-------------------------------------------------------------------------------------------------------------->
| name                                    | arguments                                                                                                    >
+-----------------------------------------+-------------------------------------------------------------------------------------------------------------->
| aws_iam_regional_access_analyzer_source | {                                                                                                            >
|                                         |     "note": "AWS CIS v3.0.0 - Controls: 1.20",                                                               >
|                                         |     "value": "resource \"aws_accessanalyzer_analyzer\" \"cis_access_analyzer\" {\n  analyzer_name = \"access_>
|                                         |     "resource": "${turbot_smart_folder.aws_cis_v300_s1_iam.id}"                                              >
|                                         | }                                                                                                            >
+-----------------------------------------+-------------------------------------------------------------------------------------------------------------->
resource "turbot_policy_setting" "aws_iam_regional_access_analyzer_source" {
  resource = turbot_smart_folder.aws_cis_v300_s1_iam.id
  type     = "tmod:@turbot/aws#/policy/types/regionStackSource"
  note     = "AWS CIS v3.0.0 - Controls: 1.20"
  value    = <<-EOT
    resource "aws_accessanalyzer_analyzer" "cis_access_analyzer" {
      analyzer_name = "access_analyzer"
      type          = "ACCOUNT"
    }
    EOT
}