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

Add rate limiter to tables #1905

Merged
merged 227 commits into from
Oct 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
227 commits
Select commit Hold shift + click to select a range
319cd7f
update github.com/turbot/steampipe-plugin-sdk/v5 to v5.6.0-dev.9
johnsmyth Jul 28, 2023
fce6bbe
add scopevalues to sns_topic
johnsmyth Aug 7, 2023
2a8ab5d
update sdk to v5.6.0-dev.14
kaidaguerre Aug 7, 2023
3b199b2
updated to github.com/turbot/steampipe-plugin-sdk/v5 v5.6.0-dev-17
johnsmyth Aug 9, 2023
a8a4612
updated to github.com/turbot/steampipe-plugin-sdk/v5 v5.6.0-dev.20
johnsmyth Aug 10, 2023
2e22f2e
add function tags to aws_iam_policy
johnsmyth Aug 31, 2023
e246e9a
add default retry config
johnsmyth Sep 1, 2023
970e7a0
refactor: renamed default plugin retry
graza-io Sep 1, 2023
d672d71
Update
ParthaI Sep 11, 2023
5ac6ebe
Update the tables with rate limiter config
ParthaI Sep 12, 2023
864a5dc
Resolved merge conflict
ParthaI Sep 12, 2023
61f926d
Added the ratelimiter for the table aws_s3_bucket
ParthaI Sep 14, 2023
c65b00a
Added audit manager service resources
ParthaI Sep 14, 2023
c355838
Updated the rate limiter for backup service
ParthaI Sep 14, 2023
d24dc3d
Made changes for the service cloudformation
ParthaI Sep 14, 2023
0ed9789
added rate limiter to the acm certificate and sns topic table
ParthaI Sep 14, 2023
07e4beb
Made changes for 7 tables of vpc service
ParthaI Sep 15, 2023
74bc442
Updated 5 more table for rate limiter config of vpc service
ParthaI Sep 15, 2023
f45dc2d
Updated the list function for the tables
ParthaI Sep 15, 2023
813e10b
Updated vpc service tables with rate limiter config
ParthaI Sep 15, 2023
924d532
Updated 10 tables of with rate limiter config for ec2 service
ParthaI Sep 15, 2023
58fb380
Update cloudwatch tables
bigdatasourav Sep 18, 2023
94207be
Tidy up
ParthaI Sep 18, 2023
b127f4b
Merge branch 'add-rate-limiter-to-tables' of github.com:turbot/steamp…
ParthaI Sep 18, 2023
221085e
Add aws_dax_cluster changes
Priyanka-Chatterjee-2000 Sep 18, 2023
3b12f26
Merge branch 'add-rate-limiter-to-tables' of https://github.com/turbo…
Priyanka-Chatterjee-2000 Sep 18, 2023
5783135
update codeartifact tables
bigdatasourav Sep 18, 2023
2a198b9
Merge branch 'add-rate-limiter-to-tables' of github.com:turbot/steamp…
bigdatasourav Sep 18, 2023
0514853
update codebuild tables
bigdatasourav Sep 18, 2023
d666f77
update codecommit table
bigdatasourav Sep 18, 2023
a1396a0
update codedeploy tables
bigdatasourav Sep 18, 2023
15ee05d
Update codepipeline, codebuild, codedeploy tables
bigdatasourav Sep 18, 2023
0240f9b
Updated the table aws_ec2_instance with rate limiter config
ParthaI Sep 18, 2023
84f1240
Updated the table aws_ec2_key_pair with rate limiter config
ParthaI Sep 18, 2023
600394f
Updated the table aws_ec2_launch_configuration with the rate limiter …
ParthaI Sep 18, 2023
16f39f7
Updated the table aws_ec2_launch_template_version and aws_ec2_launch_…
ParthaI Sep 18, 2023
8bfef01
Updated the table aws_ec2_load_balancer_listener
ParthaI Sep 18, 2023
d8e7d36
Updated the tables aws_ec2_managed_prefix_list_entry and aws_ec2_mana…
ParthaI Sep 18, 2023
4db162c
Updated the table aws_ec2_network_interface
ParthaI Sep 18, 2023
72e1ed6
Updated teh table aws_ec2_network_load_balancer
ParthaI Sep 18, 2023
5848489
Updated the table aws_ec2_reserved_instance
ParthaI Sep 18, 2023
d412c2a
Updated the table aws_ec2_spot_price
ParthaI Sep 18, 2023
b2c0671
Updated the table aws_ec2_ssl_policy
ParthaI Sep 18, 2023
bc17ac4
Updated the table aws_ec2_target_group
ParthaI Sep 18, 2023
7b8ab6c
Add aws_dax_parameter changes
Priyanka-Chatterjee-2000 Sep 18, 2023
4bf2586
Updated the table aws_ec2_transit_gateway_route_table
ParthaI Sep 18, 2023
ffe1ff1
Updated the table aws_ec2_transit_gateway_route
ParthaI Sep 18, 2023
a95d2fd
Add aws_dax_parameter change
Priyanka-Chatterjee-2000 Sep 18, 2023
7666c4e
Merge branch 'add-rate-limiter-to-tables' of https://github.com/turbo…
Priyanka-Chatterjee-2000 Sep 18, 2023
a3c1906
Updated the table aws_ec2_transit_gateway_vpc_attachment
ParthaI Sep 18, 2023
e2af4f4
Merge branch 'add-rate-limiter-to-tables' of github.com:turbot/steamp…
ParthaI Sep 18, 2023
18a2d02
Updated the table aws_ec2_transit_gateway
ParthaI Sep 18, 2023
07287a3
Add aws_dax_subnet_group changes
Priyanka-Chatterjee-2000 Sep 18, 2023
6063e01
Merge branch 'add-rate-limiter-to-tables' of https://github.com/turbo…
Priyanka-Chatterjee-2000 Sep 18, 2023
d98d90a
Updated the table aws_ebs_snapshot
ParthaI Sep 18, 2023
7df992d
Merge branch 'add-rate-limiter-to-tables' of github.com:turbot/steamp…
ParthaI Sep 18, 2023
2ceb76b
Updated the table aws_ebs_volume
ParthaI Sep 18, 2023
0bcbe70
Add directory service
Priyanka-Chatterjee-2000 Sep 18, 2023
7599843
Add aws_dlm_lifecycle
Priyanka-Chatterjee-2000 Sep 18, 2023
598ca1d
Add aws_dms_replication_instance changes
Priyanka-Chatterjee-2000 Sep 18, 2023
d4f4b8b
Add aws_docdb_cluster_instance changes
Priyanka-Chatterjee-2000 Sep 18, 2023
2cb164f
Add aws_docdb_cluster_instance
Priyanka-Chatterjee-2000 Sep 18, 2023
226cc0d
Add drs queries
Priyanka-Chatterjee-2000 Sep 20, 2023
b1a9a48
Add dynamodb tables
Priyanka-Chatterjee-2000 Sep 20, 2023
15b1c7d
Add dynamodb
Priyanka-Chatterjee-2000 Sep 20, 2023
81245c1
update cognito tables
bigdatasourav Sep 20, 2023
5982a48
Add ecr change
Priyanka-Chatterjee-2000 Sep 20, 2023
28e3fce
Merge branch 'add-rate-limiter-to-tables' of https://github.com/turbo…
Priyanka-Chatterjee-2000 Sep 20, 2023
1ddc55e
update config tables
bigdatasourav Sep 20, 2023
30ed00d
Merge branch 'add-rate-limiter-to-tables' of github.com:turbot/steamp…
bigdatasourav Sep 20, 2023
c247146
updte cost forecast tables
bigdatasourav Sep 20, 2023
fb51295
updte cost cloudfront tables
bigdatasourav Sep 20, 2023
b81cc03
update cloudsearch table
bigdatasourav Sep 20, 2023
84ce429
update cloudtrail tables
bigdatasourav Sep 20, 2023
ecb9f31
update cloudwatch_log_alarm table
bigdatasourav Sep 20, 2023
4899b70
Add table_aws_emr_cluster
rajlearner17 Sep 20, 2023
d5487c8
update route53 tables
bigdatasourav Sep 20, 2023
53d5599
Merge branch 'add-rate-limiter-to-tables' of github.com:turbot/steamp…
bigdatasourav Sep 20, 2023
1a9f3a9
Add tags table_aws_emr_block_public_access_configuration
rajlearner17 Sep 20, 2023
7e43abc
Merge branch 'add-rate-limiter-to-tables' of https://github.com/turbo…
rajlearner17 Sep 20, 2023
db02dc5
Add table_aws_emr_instance_*
rajlearner17 Sep 20, 2023
1f04c5b
Add ecs changes
Priyanka-Chatterjee-2000 Sep 20, 2023
9853988
Add eks changes
Priyanka-Chatterjee-2000 Sep 20, 2023
13185d4
Add aws_ecr_image_scan_finding
Priyanka-Chatterjee-2000 Sep 20, 2023
5f558e0
Add efs changes
Priyanka-Chatterjee-2000 Sep 20, 2023
f254253
Merge branch 'add-rate-limiter-to-tables' of https://github.com/turbo…
Priyanka-Chatterjee-2000 Sep 20, 2023
19396f3
Add elastic_beanstalk changes
Priyanka-Chatterjee-2000 Sep 20, 2023
0c7ef65
Add elasticache changes
Priyanka-Chatterjee-2000 Sep 20, 2023
c283cc3
update aws_cloudformation_stack table
bigdatasourav Sep 21, 2023
86883f8
Add elasticache and elasticsearch
Priyanka-Chatterjee-2000 Sep 21, 2023
c039da0
Merge branch 'add-rate-limiter-to-tables' of https://github.com/turbo…
Priyanka-Chatterjee-2000 Sep 21, 2023
8dc2017
Add table_aws_kinesis_*
rajlearner17 Sep 21, 2023
6190269
Update hydrate config with the get calls
Priyanka-Chatterjee-2000 Sep 21, 2023
8c5da61
Merge branch 'add-rate-limiter-to-tables' of https://github.com/turbo…
Priyanka-Chatterjee-2000 Sep 21, 2023
7c3199e
Add get call in hydrate config
Priyanka-Chatterjee-2000 Sep 21, 2023
9aac8c7
Add table_aws_kms_*
rajlearner17 Sep 21, 2023
fa894bb
Update v5.6.0-rc.28
rajlearner17 Sep 21, 2023
429f5e8
Add rds_db_cluster
Priyanka-Chatterjee-2000 Sep 21, 2023
af5eed1
Add rds instance
Priyanka-Chatterjee-2000 Sep 21, 2023
01ecad4
Add aws_rds_db_option_group
Priyanka-Chatterjee-2000 Sep 21, 2023
98e9b99
Add rds_metric and aws_rds_db_parameter_group
Priyanka-Chatterjee-2000 Sep 21, 2023
1dee6a4
Add ecs_metric changes
Priyanka-Chatterjee-2000 Sep 21, 2023
15dfcf9
Add table_aws_lambda_*
rajlearner17 Sep 21, 2023
09dd9a8
Add aws_elasticache metric
Priyanka-Chatterjee-2000 Sep 21, 2023
b2d753f
Merge branch 'add-rate-limiter-to-tables' of https://github.com/turbo…
Priyanka-Chatterjee-2000 Sep 21, 2023
20a7de7
Add aws_rds
Priyanka-Chatterjee-2000 Sep 21, 2023
efd8792
Updated aws_eventbridge_bus
ParthaI Sep 22, 2023
bccdcbb
Updated aws_eventbridge_rule
ParthaI Sep 22, 2023
d75a3ac
Add dynamodb_metrics
Priyanka-Chatterjee-2000 Sep 22, 2023
c0b09e0
Merge branch 'add-rate-limiter-to-tables' of https://github.com/turbo…
Priyanka-Chatterjee-2000 Sep 22, 2023
74c8aaa
Updated aws_fsx_file_system
ParthaI Sep 22, 2023
fb517ac
Updated aws_glacier_vault
ParthaI Sep 22, 2023
029e0b6
Updated aws_globalaccelerator_* table
ParthaI Sep 22, 2023
4f6b002
Updated aws_glue_catalog_database
ParthaI Sep 22, 2023
d60f524
Add rate limiter configuration to AWS Inspector and Inspector2 services
misraved Sep 22, 2023
6c85f93
Add rate limiter configuration for redshift and redshift-serverless
madhushreeray30 Sep 22, 2023
83c980a
Merge branch 'add-rate-limiter-to-tables' of https://github.com/turbo…
madhushreeray30 Sep 22, 2023
653ffb1
Add missing IAM permissions in HydrateConfig
rajlearner17 Sep 22, 2023
218ed30
Updated aws_glue_catalog_table
ParthaI Sep 22, 2023
09b7ffb
Merge branch 'add-rate-limiter-to-tables' of github.com:turbot/steamp…
ParthaI Sep 22, 2023
cafb828
Updated aws_glue_connection
ParthaI Sep 22, 2023
f9ad7ea
Updated aws_glue_crawler
ParthaI Sep 22, 2023
936ee10
update cost metric tables
bigdatasourav Sep 22, 2023
af2d368
Add table_aws_securityhub_*
rajlearner17 Sep 22, 2023
f16468a
Updated aws_glue_data_catalog_encryption_settings
ParthaI Sep 22, 2023
42e5ee1
Merge branch 'add-rate-limiter-to-tables' of github.com:turbot/steamp…
ParthaI Sep 22, 2023
49a98c8
Merge branch 'add-rate-limiter-to-tables' of github.com:turbot/steamp…
bigdatasourav Sep 22, 2023
9b97b85
update resource tables
bigdatasourav Sep 22, 2023
4decc5d
Updated aws_glue_data_quality_ruleset
ParthaI Sep 22, 2023
1a298e7
Merge branch 'add-rate-limiter-to-tables' of github.com:turbot/steamp…
ParthaI Sep 22, 2023
12001d0
Updated aws_glue_dev_endpoint
ParthaI Sep 22, 2023
e73ba7d
Add tags in table_aws_securitylake_*
rajlearner17 Sep 22, 2023
c0ff263
update s3 account tables
bigdatasourav Sep 22, 2023
1526b20
Update GetBlockPublicAccessConfiguration
rajlearner17 Sep 22, 2023
eb15f7c
Updated aws_glue_job
ParthaI Sep 22, 2023
f933794
Merge branch 'add-rate-limiter-to-tables' of github.com:turbot/steamp…
ParthaI Sep 22, 2023
7294a63
Merge branch 'add-rate-limiter-to-tables' of https://github.com/turbo…
rajlearner17 Sep 22, 2023
d05c228
Add tag aws_emr_cluster_metric_is_idle
rajlearner17 Sep 22, 2023
be1f0b9
Updated aws_glue_security_configuration
ParthaI Sep 22, 2023
8d98943
Merge branch 'add-rate-limiter-to-tables' of github.com:turbot/steamp…
ParthaI Sep 22, 2023
9eceaf6
Merge branch 'add-rate-limiter-to-tables' of github.com:turbot/steamp…
bigdatasourav Sep 22, 2023
1012db4
Add metric changes and service tables
Priyanka-Chatterjee-2000 Sep 22, 2023
9d54429
Merge branch 'add-rate-limiter-to-tables' of https://github.com/turbo…
Priyanka-Chatterjee-2000 Sep 22, 2023
7776de6
Updated aws_guardduty_detector
ParthaI Sep 22, 2023
3790077
Merge branch 'add-rate-limiter-to-tables' of github.com:turbot/steamp…
ParthaI Sep 22, 2023
f28c193
Updated aws_guardduty_filter
ParthaI Sep 22, 2023
504032f
Updated aws_guardduty_finding
ParthaI Sep 22, 2023
0e8b088
Add rate limiter configuration for aws_ssoadmin and aws_waf
madhushreeray30 Sep 22, 2023
9e5e881
Merge branch 'add-rate-limiter-to-tables' of https://github.com/turbo…
madhushreeray30 Sep 22, 2023
ce453cb
Update SDK v5.6.0-rc.29
rajlearner17 Sep 22, 2023
64a6933
Updated aws_guardduty_ipset
ParthaI Sep 22, 2023
fd99910
Merge branch 'add-rate-limiter-to-tables' of https://github.com/turbo…
rajlearner17 Sep 22, 2023
d27dcb9
Merge branch 'add-rate-limiter-to-tables' of github.com:turbot/steamp…
ParthaI Sep 22, 2023
95ce118
Merge branch 'add-rate-limiter-to-tables' of https://github.com/turbo…
rajlearner17 Sep 22, 2023
8aaba98
Updated aws_guardduty_member
ParthaI Sep 22, 2023
89ffb17
Merge branch 'add-rate-limiter-to-tables' of github.com:turbot/steamp…
ParthaI Sep 22, 2023
d574e92
Add service_discovery
Priyanka-Chatterjee-2000 Sep 22, 2023
e6222c3
Merge branch 'add-rate-limiter-to-tables' of https://github.com/turbo…
Priyanka-Chatterjee-2000 Sep 22, 2023
97a8321
Add rate limit for
karanpopat Sep 22, 2023
6d9a891
Add tags in table_aws_wafregional_*
rajlearner17 Sep 22, 2023
347f43a
update sagemaker,secretsmanager and s3 tables
bigdatasourav Sep 22, 2023
5aa12a7
Add rate limiter tags to AWS Well-Architected and Workspaces tables
misraved Sep 22, 2023
48dec7b
Add ses
Priyanka-Chatterjee-2000 Sep 22, 2023
70c06bf
Merge branch 'add-rate-limiter-to-tables' of https://github.com/turbo…
Priyanka-Chatterjee-2000 Sep 22, 2023
29c57cb
Updated aws_guardduty_publishing_destination
ParthaI Sep 22, 2023
890fd90
Merge branch 'add-rate-limiter-to-tables' of github.com:turbot/steamp…
ParthaI Sep 22, 2023
3238b0e
Updated aws_guardduty_threat_intel_set
ParthaI Sep 22, 2023
d6b9dda
Updated aws_health_affected_entity
ParthaI Sep 22, 2023
084bb77
Updated aws_health_event
ParthaI Sep 22, 2023
1f31bb9
Updated aws_iam_access_advisor
ParthaI Sep 22, 2023
6a38fb4
Updated aws_iam_access_key
ParthaI Sep 22, 2023
dd6fba1
Updated aws_iam_account_password_policy
ParthaI Sep 22, 2023
84fe9ff
Updated aws_iam_account_summary
ParthaI Sep 22, 2023
e17c164
Updated aws_iam_credential_report
ParthaI Sep 22, 2023
7fcfd75
Updated aws_iam_group
ParthaI Sep 22, 2023
25312b6
Updated aws_iam_open_id_connect_provider
ParthaI Sep 22, 2023
25b3a2a
Add rate limit for aws_ssm_* tables
karanpopat Sep 22, 2023
aa1ea6c
Merge branch 'add-rate-limiter-to-tables' of github.com:turbot/steamp…
karanpopat Sep 22, 2023
885fc54
Add sfn_state
Priyanka-Chatterjee-2000 Sep 22, 2023
82f0929
Merge branch 'add-rate-limiter-to-tables' of https://github.com/turbo…
Priyanka-Chatterjee-2000 Sep 22, 2023
bbfad8c
Updated aws_iam_policy_attachment
ParthaI Sep 22, 2023
08f440c
Merge branch 'add-rate-limiter-to-tables' of github.com:turbot/steamp…
ParthaI Sep 22, 2023
a74f4d1
Updated aws_iam_policy_simulator
ParthaI Sep 22, 2023
a35e2af
Updated aws_iam_saml_provider
ParthaI Sep 22, 2023
88bff9c
Updated aws_iam_role
ParthaI Sep 22, 2023
98a07a0
Add tags in table_aws_wafv2_*
rajlearner17 Sep 22, 2023
4b61fa5
Add tags in table_aws_appautoscaling_*
rajlearner17 Sep 22, 2023
915c4b1
Add aws_simspaceweaver_simulation
Priyanka-Chatterjee-2000 Sep 22, 2023
16cf483
Merge branch 'add-rate-limiter-to-tables' of https://github.com/turbo…
Priyanka-Chatterjee-2000 Sep 22, 2023
8486f92
Updated aws_iam_server_certificate
ParthaI Sep 22, 2023
e27fee0
Merge branch 'add-rate-limiter-to-tables' of github.com:turbot/steamp…
ParthaI Sep 22, 2023
22a1341
Updated aws_iam_service_specific_credential
ParthaI Sep 22, 2023
49acdaa
Updated aws_iam_user
ParthaI Sep 22, 2023
b833708
Add sns, sqs
Priyanka-Chatterjee-2000 Sep 22, 2023
e84b5e2
Merge branch 'add-rate-limiter-to-tables' of https://github.com/turbo…
Priyanka-Chatterjee-2000 Sep 22, 2023
ef68cf2
Add aws_accessanalyzer_analyzer
Priyanka-Chatterjee-2000 Sep 22, 2023
1b10003
Add aws_ebs_volume_metric_*,aws_ec2_application_load_balancer_metric_…
rajlearner17 Sep 22, 2023
fc14f9d
Add rate limit for aws_identitystore_* tables
karanpopat Sep 22, 2023
53ea541
Merge branch 'add-rate-limiter-to-tables' of github.com:turbot/steamp…
karanpopat Sep 22, 2023
abe7b61
Add aws_account
Priyanka-Chatterjee-2000 Sep 22, 2023
1d8d2e5
Merge branch 'add-rate-limiter-to-tables' of https://github.com/turbo…
Priyanka-Chatterjee-2000 Sep 22, 2023
3cf30d3
Add aws_availability_zone
Priyanka-Chatterjee-2000 Sep 22, 2023
772d449
Update
ParthaI Sep 25, 2023
ab01cb7
Update SDK to v5.6.0-rc.30
rajlearner17 Sep 25, 2023
713d24b
Make changes for rate limiter changes during review
madhushreeray30 Sep 25, 2023
13d7028
Merge branch 'add-rate-limiter-to-tables' of https://github.com/turbo…
madhushreeray30 Sep 25, 2023
d13de86
update well architected and workspace tables
madhushreeray30 Sep 26, 2023
eb0046e
add changes for waf
madhushreeray30 Sep 26, 2023
2383bec
Tidy up
ParthaI Sep 26, 2023
4dd9b0e
Merge branch 'add-rate-limiter-to-tables' of github.com:turbot/steamp…
ParthaI Sep 26, 2023
aba3e94
make required changes for networkfirewall, oam and ssm
madhushreeray30 Sep 26, 2023
e89773c
Make required changes for kinesis, kms, servicequotas, sfn
madhushreeray30 Sep 26, 2023
f36d0d8
Updated the Steampipe SDK version
ParthaI Sep 26, 2023
afdc398
Merge branch 'add-rate-limiter-to-tables' of github.com:turbot/steamp…
ParthaI Sep 26, 2023
1c86b28
Make changes for ds, ecr, efs
madhushreeray30 Sep 26, 2023
106f31f
Merge branch 'add-rate-limiter-to-tables' of https://github.com/turbo…
madhushreeray30 Sep 26, 2023
7701291
Make changes for cloudwatch, codeartifact, codebuild, codedeploy, cod…
madhushreeray30 Sep 27, 2023
9ea0a1d
Mkae changes for inspector and sso
madhushreeray30 Sep 27, 2023
3f053b4
Make changes for ec2
madhushreeray30 Sep 27, 2023
1cfde0a
Make changes for dax, eventbridge, globalaccelarator, glue, guardduty…
madhushreeray30 Sep 27, 2023
ddf4487
Make required changes for vpc
madhushreeray30 Sep 27, 2023
d299ebc
make s3 changes
madhushreeray30 Sep 27, 2023
6bdfb7b
Minor update
madhushreeray30 Sep 27, 2023
a23d8b2
Updated the steampipe sdk version to v5.6.0
ParthaI Sep 27, 2023
3eaf66a
Merge branch 'add-rate-limiter-to-tables' of github.com:turbot/steamp…
ParthaI Sep 27, 2023
86b2217
Merge branch 'main' of github.com:turbot/steampipe-plugin-aws into ad…
ParthaI Sep 27, 2023
fb62df3
Merge branch 'main' of github.com:turbot/steampipe-plugin-aws into ad…
misraved Sep 30, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
30 changes: 28 additions & 2 deletions aws/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ package aws

import (
"context"
"strings"

"github.com/turbot/steampipe-plugin-sdk/v5/plugin"
"github.com/turbot/steampipe-plugin-sdk/v5/plugin/transform"
Expand All @@ -17,8 +18,9 @@ const pluginName = "steampipe-plugin-aws"
// Plugin creates this (aws) plugin
func Plugin(ctx context.Context) *plugin.Plugin {
p := &plugin.Plugin{
Name: pluginName,
DefaultTransform: transform.FromCamel(),
Name: pluginName,
DefaultTransform: transform.FromCamel(),
DefaultRetryConfig: pluginRetryConfig(),
DefaultGetConfig: &plugin.GetConfig{
IgnoreConfig: &plugin.IgnoreConfig{
ShouldIgnoreErrorFunc: shouldIgnoreErrors([]string{
Expand Down Expand Up @@ -500,3 +502,27 @@ func Plugin(ctx context.Context) *plugin.Plugin {

return p
}

func pluginRetryConfig() *plugin.RetryConfig {
return &plugin.RetryConfig{
MaxAttempts: 20,
BackoffAlgorithm: "Exponential",
RetryInterval: 1000,
CappedDuration: 240000,
ShouldRetryErrorFunc: pluginRetryError,
}
}

func pluginRetryError(ctx context.Context, d *plugin.QueryData, h *plugin.HydrateData, err error) bool {
if strings.Contains(err.Error(), "StatusCode: 408") {
plugin.Logger(ctx).Debug("pluginRetryError", "retrying 408", err.Error())
return true
}

if strings.Contains(err.Error(), "no such host") {
plugin.Logger(ctx).Debug("pluginRetryError", "no such host", err.Error())
return true
}

return false
}
14 changes: 14 additions & 0 deletions aws/table_aws_accessanalyzer_analyzer.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,24 @@ func tableAwsAccessAnalyzer(_ context.Context) *plugin.Table {
ShouldIgnoreErrorFunc: shouldIgnoreErrors([]string{"ResourceNotFoundException", "ValidationException", "InvalidParameter"}),
},
Hydrate: getAccessAnalyzer,
Tags: map[string]string{"service": "access-analyzer", "action": "GetAnalyzer"},
},
List: &plugin.ListConfig{
Hydrate: listAccessAnalyzers,
Tags: map[string]string{"service": "access-analyzer", "action": "ListAnalyzers"},
KeyColumns: []*plugin.KeyColumn{
{
Name: "type",
Require: plugin.Optional,
},
},
},
HydrateConfig: []plugin.HydrateConfig{
{
Func: listAccessAnalyzerFindings,
Tags: map[string]string{"service": "access-analyzer", "action": "ListFindings"},
},
},
GetMatrixItemFunc: SupportedRegionMatrix(accessanalyzerv1.EndpointsID),
Columns: awsRegionalColumns([]*plugin.Column{
{
Expand Down Expand Up @@ -150,6 +158,9 @@ func listAccessAnalyzers(ctx context.Context, d *plugin.QueryData, _ *plugin.Hyd
})

for paginator.HasMorePages() {
// apply rate limiting
d.WaitForListRateLimit(ctx)

output, err := paginator.NextPage(ctx)
if err != nil {
plugin.Logger(ctx).Error("aws_accessanalyzer_analyzer.listAccessAnalyzers", "api_error", err)
Expand Down Expand Up @@ -218,6 +229,9 @@ func listAccessAnalyzerFindings(ctx context.Context, d *plugin.QueryData, h *plu
})

for paginator.HasMorePages() {
// apply rate limiting
d.WaitForListRateLimit(ctx)

output, err := paginator.NextPage(ctx)
if err != nil {
plugin.Logger(ctx).Error("aws_accessanalyzer_analyzer.listAccessAnalyzerFindings", "api_error", err)
Expand Down
7 changes: 7 additions & 0 deletions aws/table_aws_account.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ func tableAwsAccount(ctx context.Context) *plugin.Table {
Description: "AWS Account",
List: &plugin.ListConfig{
Hydrate: listAccountAlias,
Tags: map[string]string{"service": "iam", "action": "ListAccountAliases"},
},
HydrateConfig: []plugin.HydrateConfig{
{
Func: getOrganizationDetails,
Tags: map[string]string{"service": "organizations", "action": "DescribeOrganization"},
},
},
Columns: awsGlobalRegionColumns([]*plugin.Column{
{
Expand Down
1 change: 1 addition & 0 deletions aws/table_aws_account_alternate_contact.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ func tableAwsAccountAlternateContact(_ context.Context) *plugin.Table {
Description: "AWS Account Alternate Contact",
List: &plugin.ListConfig{
Hydrate: listAwsAccountAlternateContacts,
Tags: map[string]string{"service": "account", "action": "GetAlternateContact"},
IgnoreConfig: &plugin.IgnoreConfig{
ShouldIgnoreErrorFunc: shouldIgnoreErrors([]string{"ResourceNotFoundException"}),
},
Expand Down
1 change: 1 addition & 0 deletions aws/table_aws_account_contact.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ func tableAwsAccountContact(_ context.Context) *plugin.Table {
Description: "AWS Account Contact",
List: &plugin.ListConfig{
Hydrate: listAwsAccountContacts,
Tags: map[string]string{"service": "account", "action": "GetContactInformation"},
KeyColumns: []*plugin.KeyColumn{
{
Name: "linked_account_id",
Expand Down
42 changes: 39 additions & 3 deletions aws/table_aws_acm_certificate.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ package aws

import (
"context"
"errors"
"fmt"
"strings"

"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/service/acm"
"github.com/aws/aws-sdk-go-v2/service/acm/types"
"github.com/aws/smithy-go"

acmv1 "github.com/aws/aws-sdk-go/service/acm"

Expand All @@ -25,9 +27,14 @@ func tableAwsAcmCertificate(_ context.Context) *plugin.Table {
Get: &plugin.GetConfig{
KeyColumns: plugin.SingleColumn("certificate_arn"),
Hydrate: getAwsAcmCertificateAttributes,
IgnoreConfig: &plugin.IgnoreConfig{
ShouldIgnoreErrorFunc: shouldIgnoreErrors([]string{"ResourceNotFoundException"}),
},
Tags: map[string]string{"service": "acm", "action": "DescribeCertificate"},
},
List: &plugin.ListConfig{
Hydrate: listAwsAcmCertificates,
Tags: map[string]string{"service": "acm", "action": "ListCertificates"},
KeyColumns: []*plugin.KeyColumn{
{
Name: "status",
Expand All @@ -39,6 +46,20 @@ func tableAwsAcmCertificate(_ context.Context) *plugin.Table {
},
},
},
HydrateConfig: []plugin.HydrateConfig{
{
Func: getAwsAcmCertificateAttributes,
Tags: map[string]string{"service": "acm", "action": "DescribeCertificate"},
},
{
Func: getAwsAcmCertificateProperties,
Tags: map[string]string{"service": "acm", "action": "GetCertificate"},
},
{
Func: listTagsForAcmCertificate,
Tags: map[string]string{"service": "acm", "action": "ListTagsForCertificate"},
},
},
GetMatrixItemFunc: SupportedRegionMatrix(acmv1.EndpointsID),
Columns: awsRegionalColumns([]*plugin.Column{
{
Expand Down Expand Up @@ -280,6 +301,9 @@ func listAwsAcmCertificates(ctx context.Context, d *plugin.QueryData, _ *plugin.

// List call
for paginator.HasMorePages() {
// apply rate limiting
d.WaitForListRateLimit(ctx)

output, err := paginator.NextPage(ctx)
if err != nil {
plugin.Logger(ctx).Error("aws_acm_certificate.listAwsAcmCertificates", "api_error", err)
Expand Down Expand Up @@ -322,6 +346,12 @@ func getAwsAcmCertificateAttributes(ctx context.Context, d *plugin.QueryData, h

detail, err := svc.DescribeCertificate(ctx, params)
if err != nil {
var ae smithy.APIError
if errors.As(err, &ae) {
if ae.ErrorCode() == "ResourceNotFoundException" {
return nil, nil
}
}
plugin.Logger(ctx).Error("aws_acm_certificate.getAwsAcmCertificateAttributes", "api_error", err)
return nil, err
}
Expand Down Expand Up @@ -368,6 +398,10 @@ func listTagsForAcmCertificate(ctx context.Context, d *plugin.QueryData, h *plug
return nil, err
}

if arn == nil {
return nil, nil
}

// Create session
svc, err := ACMClient(ctx, d)
if err != nil {
Expand All @@ -389,11 +423,13 @@ func listTagsForAcmCertificate(ctx context.Context, d *plugin.QueryData, h *plug
}

func getCertificateArn(_ context.Context, d *plugin.QueryData, h *plugin.HydrateData) (*string, error) {
switch item := h.Item.(type) {
case *types.CertificateDetail:
if h.Item != nil {
switch item := h.Item.(type) {
case *types.CertificateDetail:
return item.CertificateArn, nil
case types.CertificateSummary:
case types.CertificateSummary:
return item.CertificateArn, nil
}
}
return nil, nil
}
Expand Down
5 changes: 5 additions & 0 deletions aws/table_aws_amplify_app.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ func tableAwsAmplifyApp(_ context.Context) *plugin.Table {
ShouldIgnoreErrorFunc: shouldIgnoreErrors([]string{"ValidationException", "NotFoundException"}),
},
Hydrate: getAmplifyApp,
Tags: map[string]string{"service": "amplify", "action": "GetApp"},
},
List: &plugin.ListConfig{
Hydrate: listAmplifyApps,
Tags: map[string]string{"service": "amplify", "action": "ListApps"},
},
GetMatrixItemFunc: SupportedRegionMatrix(amplifyv1.EndpointsID),
Columns: awsRegionalColumns([]*plugin.Column{
Expand Down Expand Up @@ -205,6 +207,9 @@ func listAmplifyApps(ctx context.Context, d *plugin.QueryData, h *plugin.Hydrate
pagesLeft := true

for pagesLeft {
// apply rate limiting
d.WaitForListRateLimit(ctx)

result, err := svc.ListApps(ctx, input)
if err != nil {
plugin.Logger(ctx).Error("aws_amplify_app.listAmplifyApps", "api_error", err)
Expand Down
2 changes: 2 additions & 0 deletions aws/table_aws_api_gateway_api_authorizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@ func tableAwsAPIGatewayAuthorizer(_ context.Context) *plugin.Table {
ShouldIgnoreErrorFunc: shouldIgnoreErrors([]string{"NotFoundException"}),
},
Hydrate: getRestAPIAuthorizer,
Tags: map[string]string{"service": "apigateway", "action": "GetAuthorizer"},
},
List: &plugin.ListConfig{
ParentHydrate: listRestAPI,
Hydrate: listRestAPIAuthorizers,
Tags: map[string]string{"service": "apigateway", "action": "GetAuthorizers"},
},
GetMatrixItemFunc: SupportedRegionMatrix(apigatewayv1.EndpointsID),
Columns: awsRegionalColumns([]*plugin.Column{
Expand Down
5 changes: 5 additions & 0 deletions aws/table_aws_api_gateway_api_key.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@ func tableAwsAPIGatewayAPIKey(_ context.Context) *plugin.Table {
ShouldIgnoreErrorFunc: shouldIgnoreErrors([]string{"NotFoundException"}),
},
Hydrate: getAPIKey,
Tags: map[string]string{"service": "apigateway", "action": "GetApiKey"},
},
List: &plugin.ListConfig{
Hydrate: listAPIKeys,
Tags: map[string]string{"service": "apigateway", "action": "GetApiKeys"},
KeyColumns: []*plugin.KeyColumn{
{
Name: "customer_id",
Expand Down Expand Up @@ -153,6 +155,9 @@ func listAPIKeys(ctx context.Context, d *plugin.QueryData, _ *plugin.HydrateData
})

for paginator.HasMorePages() {
// apply rate limiting
d.WaitForListRateLimit(ctx)

output, err := paginator.NextPage(ctx)
if err != nil {
plugin.Logger(ctx).Error("aws_api_gateway_rest_api.listAPIKeys", "api_error", err)
Expand Down
5 changes: 5 additions & 0 deletions aws/table_aws_api_gateway_domain_name.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@ func tableAwsAPIGatewayDomainName(_ context.Context) *plugin.Table {
ShouldIgnoreErrorFunc: shouldIgnoreErrors([]string{"NotFoundException"}),
},
Hydrate: getApiGatewayDomainName,
Tags: map[string]string{"service": "apigateway", "action": "GetDomainName"},
},
List: &plugin.ListConfig{
Hydrate: listApiGatewayDomainNames,
Tags: map[string]string{"service": "apigateway", "action": "GetDomainNames"},
},
GetMatrixItemFunc: SupportedRegionMatrix(apigatewayv1.EndpointsID),
Columns: awsRegionalColumns([]*plugin.Column{
Expand Down Expand Up @@ -170,6 +172,9 @@ func listApiGatewayDomainNames(ctx context.Context, d *plugin.QueryData, _ *plug

// List call
for paginator.HasMorePages() {
// apply rate limiting
d.WaitForListRateLimit(ctx)

output, err := paginator.NextPage(ctx)
if err != nil {
plugin.Logger(ctx).Error("aws_api_gateway_domain_name.listApiGatewayDomainNames", "api_error", err)
Expand Down
5 changes: 5 additions & 0 deletions aws/table_aws_api_gateway_rest_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@ func tableAwsAPIGatewayRestAPI(_ context.Context) *plugin.Table {
ShouldIgnoreErrorFunc: shouldIgnoreErrors([]string{"NotFoundException"}),
},
Hydrate: getRestAPI,
Tags: map[string]string{"service": "apigateway", "action": "GetRestApi"},
},
List: &plugin.ListConfig{
Hydrate: listRestAPI,
Tags: map[string]string{"service": "apigateway", "action": "GetRestApis"},
},
GetMatrixItemFunc: SupportedRegionMatrix(apigatewayv1.EndpointsID),
Columns: awsRegionalColumns([]*plugin.Column{
Expand Down Expand Up @@ -174,6 +176,9 @@ func listRestAPI(ctx context.Context, d *plugin.QueryData, _ *plugin.HydrateData

// List call
for paginator.HasMorePages() {
// apply rate limiting
d.WaitForListRateLimit(ctx)

output, err := paginator.NextPage(ctx)
if err != nil {
plugin.Logger(ctx).Error("aws_api_gateway_rest_api.listRestAPI", "api_error", err)
Expand Down
2 changes: 2 additions & 0 deletions aws/table_aws_api_gateway_stage.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ func tableAwsAPIGatewayStage(_ context.Context) *plugin.Table {
ShouldIgnoreErrorFunc: shouldIgnoreErrors([]string{"NotFoundException"}),
},
Hydrate: getAPIGatewayStage,
Tags: map[string]string{"service": "apigateway", "action": "GetStage"},
},
List: &plugin.ListConfig{
ParentHydrate: listRestAPI,
Hydrate: listAPIGatewayStage,
Tags: map[string]string{"service": "apigateway", "action": "GetStages"},
},
GetMatrixItemFunc: SupportedRegionMatrix(apigatewayv1.EndpointsID),
Columns: awsRegionalColumns([]*plugin.Column{
Expand Down
5 changes: 5 additions & 0 deletions aws/table_aws_api_gateway_usage_plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@ func tableAwsAPIGatewayUsagePlan(_ context.Context) *plugin.Table {
ShouldIgnoreErrorFunc: shouldIgnoreErrors([]string{"NotFoundException"}),
},
Hydrate: getUsagePlan,
Tags: map[string]string{"service": "apigateway", "action": "GetUsagePlan"},
},
List: &plugin.ListConfig{
Hydrate: listUsagePlans,
Tags: map[string]string{"service": "apigateway", "action": "GetUsagePlans"},
},
GetMatrixItemFunc: SupportedRegionMatrix(apigatewayv1.EndpointsID),
Columns: awsRegionalColumns([]*plugin.Column{
Expand Down Expand Up @@ -125,6 +127,9 @@ func listUsagePlans(ctx context.Context, d *plugin.QueryData, _ *plugin.HydrateD

// List call
for paginator.HasMorePages() {
// apply rate limiting
d.WaitForListRateLimit(ctx)

output, err := paginator.NextPage(ctx)
if err != nil {
plugin.Logger(ctx).Error("aws_api_gateway_rest_api.listUsagePlans", "api_error", err)
Expand Down
5 changes: 5 additions & 0 deletions aws/table_aws_api_gatewayv2_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@ func tableAwsAPIGatewayV2Api(_ context.Context) *plugin.Table {
ShouldIgnoreErrorFunc: shouldIgnoreErrors([]string{"NotFoundException"}),
},
Hydrate: getAPIGatewayV2API,
Tags: map[string]string{"service": "apigateway", "action": "GetApi"},
},
List: &plugin.ListConfig{
Hydrate: listAPIGatewayV2API,
Tags: map[string]string{"service": "apigateway", "action": "GetApis"},
},
GetMatrixItemFunc: SupportedRegionMatrix(apigatewayv2v1.EndpointsID),
Columns: awsRegionalColumns([]*plugin.Column{
Expand Down Expand Up @@ -135,6 +137,9 @@ func listAPIGatewayV2API(ctx context.Context, d *plugin.QueryData, _ *plugin.Hyd
}

for pagesLeft {
// apply rate limiting
d.WaitForListRateLimit(ctx)

result, err := svc.GetApis(ctx, params)
if err != nil {
logger.Error("aws_api_gatewayv2_api.listAPIGatewayV2API", "api_error", err)
Expand Down
Loading
Loading