This repository has been archived by the owner on Aug 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add support for resource groups (#1396)
- Loading branch information
Showing
16 changed files
with
481 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
# Table: aws_resourcegroups_resource_groups | ||
|
||
## Columns | ||
| Name | Type | Description | | ||
| ------------- | ------------- | ----- | | ||
|account_id|text|The AWS Account ID of the resource.| | ||
|region|text|The AWS Region of the resource.| | ||
|tags|jsonb|| | ||
|arn|text|The ARN of the resource group| | ||
|group|text|The name of the resource group| | ||
|group_description|text|The description of the resource group| | ||
|resource_query|text|The query that defines a group or a search| | ||
|resource_query_type|text|The type of the query| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
//check-for-changes | ||
service = "aws" | ||
output_directory = "." | ||
add_generate = true | ||
|
||
description_modifier "remove_read_only" { | ||
words = [" This member is required."] | ||
} | ||
|
||
resource "aws" "resourcegroups" "resource_groups" { | ||
path = "../resourcegroups.ResourceGroupWrapper" | ||
|
||
ignoreError "IgnoreCommonErrors" { | ||
path = "github.com/cloudquery/cq-provider-aws/client.IgnoreCommonErrors" | ||
} | ||
multiplex "AwsAccountRegion" { | ||
path = "github.com/cloudquery/cq-provider-aws/client.ServiceAccountRegionMultiplexer" | ||
params = ["resource-groups"] | ||
} | ||
deleteFilter "AccountRegionFilter" { | ||
path = "github.com/cloudquery/cq-provider-aws/client.DeleteAccountRegionFilter" | ||
} | ||
|
||
options { | ||
primary_keys = ["arn"] | ||
} | ||
|
||
column "group_arn" { | ||
rename = "arn" | ||
} | ||
|
||
column "group_name" { | ||
rename = "group" | ||
} | ||
|
||
userDefinedColumn "account_id" { | ||
type = "string" | ||
description = "The AWS Account ID of the resource." | ||
resolver "resolveAWSAccount" { | ||
path = "github.com/cloudquery/cq-provider-aws/client.ResolveAWSAccount" | ||
} | ||
} | ||
userDefinedColumn "region" { | ||
type = "string" | ||
description = "The AWS Region of the resource." | ||
resolver "resolveAWSRegion" { | ||
path = "github.com/cloudquery/cq-provider-aws/client.ResolveAWSRegion" | ||
} | ||
} | ||
userDefinedColumn "tags" { | ||
type = "json" | ||
generate_resolver = true | ||
} | ||
} |
Oops, something went wrong.