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

Feat/cloudquery full scan #256

Merged
merged 3 commits into from
Apr 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
26 changes: 23 additions & 3 deletions images/cloud_asset_inventory/cloudquery/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,28 @@ spec:
name: aws
path: cloudquery/aws
version: "v15.4.0"
tables: ["aws_s3*"]
# tables: ["*"]
# tables: ["aws_s3*"]
tables: ["*"]
skip_tables:
- aws_ec2_vpc_endpoint_services # this resource includes services that are available from AWS as well as other AWS Accounts
- aws_cloudtrail_events
- aws_docdb_cluster_parameter_groups
- aws_docdb_engine_versions
- aws_ec2_instance_types
- aws_elasticache_engine_versions
- aws_elasticache_parameter_groups
- aws_elasticache_reserved_cache_nodes_offerings
- aws_elasticache_service_updates
- aws_iam_group_last_accessed_details
- aws_iam_policy_last_accessed_details
- aws_iam_role_last_accessed_details
- aws_iam_user_last_accessed_details
- aws_neptune_cluster_parameter_groups
- aws_neptune_db_parameter_groups
- aws_rds_cluster_parameter_groups
- aws_rds_db_parameter_groups
- aws_rds_engine_versions
- aws_servicequotas_services
destinations: ["s3"]
spec:
regions:
Expand All @@ -25,6 +45,6 @@ spec:
spec:
bucket: ${CQ_S3_BUCKET}
region: "ca-central-1"
path: "cloudquery/{{TABLE}}/dt={{YEAR}}-{{MONTH}}-{{DAY}}-{{HOUR}}/{{UUID}}.parquet"
path: "cloudquery/{{TABLE}}/dt={{YEAR}}-{{MONTH}}-{{DAY}}-{{HOUR}}-{{MINUTE}}/{{UUID}}.parquet"
format: "parquet"
athena: true # <- set this to true for Athena compatibility
4 changes: 4 additions & 0 deletions terragrunt/aws/cloud_asset_inventory/s3.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,8 @@ module "cloudquery_s3_bucket" {
billing_tag_value = var.billing_tag_value
# critical_tag_key = var.critical_tag_key
# critical_tag_value = var.critical_tag_value

versioning = {
enabled = true
}
}