Skip to content

Commit ad59c7f

Browse files
chore(deps): Update dependency source-aws to v35 (#1737)
This PR contains the following updates: | Package | Update | Change | |---|---|---| | [source-aws](https://hub.cloudquery.io) | major | `v34.9.0` β†’ `v35.0.0` | --- ### Configuration πŸ“… **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. β™» **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. πŸ”• **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://redirect.github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xOTUuMiIsInVwZGF0ZWRJblZlciI6IjQzLjE5NS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
1 parent 149cd1e commit ad59c7f

17 files changed

Lines changed: 68 additions & 26 deletions

File tree

β€Ž.github/workflows/transformations_aws_compliance_premium.ymlβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ jobs:
156156
if: needs.prepare.outputs.s3 == 'true'
157157
run: |
158158
cloudquery migrate tests/s3.yml
159+
./tests/create_athena_tables.sh
159160
uv run dbt run --target dev-athena --profiles-dir ./tests
160161
- name: Setup Node.js
161162
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7

β€Žtransformations/aws/asset-inventory-free/tests/clickhouse.ymlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ spec:
33
name: aws
44
path: cloudquery/aws
55
registry: cloudquery
6-
version: "v34.9.0" # latest version of source aws plugin
6+
version: "v35.0.0" # latest version of source aws plugin
77
destinations: ["clickhouse"]
88
tables: ["*"]
99
---

β€Žtransformations/aws/asset-inventory-free/tests/postgres.ymlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ spec:
33
name: aws
44
path: cloudquery/aws
55
registry: cloudquery
6-
version: "v34.9.0" # latest version of source aws plugin
6+
version: "v35.0.0" # latest version of source aws plugin
77
destinations: ["postgresql"]
88
tables: ["*"]
99
---

β€Žtransformations/aws/asset-inventory-free/tests/snowflake.ymlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ spec:
33
name: aws
44
path: cloudquery/aws
55
registry: cloudquery
6-
version: "v34.9.0" # latest version of source aws plugin
6+
version: "v35.0.0" # latest version of source aws plugin
77
destinations: ["snowflake"]
88
tables: ["*"]
99
---

β€Žtransformations/aws/compliance-premium/README.mdβ€Ž

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ spec:
134134
"aws_iam_user_policies",
135135
"aws_cloudwatchlogs_metric_filters",
136136
"aws_cloudtrail_trails",
137-
"aws_cloudwatch_alarms",
137+
"aws_cloudwatch_metric_alarms",
138138
"aws_ec2_flow_logs",
139139
"aws_iam_virtual_mfa_devices",
140140
"aws_ec2_vpcs",
@@ -224,7 +224,7 @@ tables: ["aws_iam_password_policies",
224224
"aws_iam_user_policies",
225225
"aws_cloudwatchlogs_metric_filters",
226226
"aws_cloudtrail_trails",
227-
"aws_cloudwatch_alarms",
227+
"aws_cloudwatch_metric_alarms",
228228
"aws_ec2_flow_logs",
229229
"aws_iam_virtual_mfa_devices",
230230
"aws_ec2_vpcs",
@@ -261,7 +261,7 @@ tables: ["aws_securityhub_hubs",
261261
"aws_iam_user_access_keys",
262262
"aws_cloudtrail_trails",
263263
"aws_efs_filesystems",
264-
"aws_cloudwatch_alarms",
264+
"aws_cloudwatch_metric_alarms",
265265
"aws_accessanalyzer_analyzers",
266266
"aws_ec2_vpcs",
267267
"aws_s3_bucket_versionings",
@@ -313,7 +313,7 @@ tables: ["aws_securityhub_hubs",
313313
"aws_iam_user_access_keys",
314314
"aws_cloudtrail_trails",
315315
"aws_efs_filesystems",
316-
"aws_cloudwatch_alarms",
316+
"aws_cloudwatch_metric_alarms",
317317
"aws_accessanalyzer_analyzers",
318318
"aws_ec2_vpcs",
319319
"aws_s3_bucket_versionings",
@@ -493,7 +493,7 @@ tables: ["aws_ec2_eips",
493493
"aws_iam_policies",
494494
"aws_s3_bucket_encryption_rules",
495495
"aws_cloudtrail_trails",
496-
"aws_cloudwatch_alarms",
496+
"aws_cloudwatch_metric_alarms",
497497
"aws_ec2_vpcs",
498498
"aws_iam_accounts",
499499
"aws_rds_cluster_snapshots",

β€Žtransformations/aws/compliance-premium/dbt_project.ymlβ€Ž

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ vars:
4444
- aws_ec2_security_groups
4545
- aws_sns_subscriptions
4646
- aws_cloudwatchlogs_metric_filters
47-
- aws_cloudwatch_alarms
47+
- aws_cloudwatch_metric_alarms
4848
cis_v2_0_0:
4949
- aws_iam_password_policies
5050
- aws_iam_user_attached_policies
@@ -89,7 +89,7 @@ vars:
8989
- aws_sns_subscriptions
9090
- aws_ec2_network_acls
9191
- aws_cloudwatchlogs_metric_filters
92-
- aws_cloudwatch_alarms
92+
- aws_cloudwatch_metric_alarms
9393
- aws_iam_policy_default_versions
9494
cis_v3_0_0:
9595
- aws_iam_password_policies
@@ -133,7 +133,7 @@ vars:
133133
- aws_cloudwatchlogs_metric_filters
134134
- aws_sns_subscriptions
135135
- aws_ec2_network_acls
136-
- aws_cloudwatch_alarms
136+
- aws_cloudwatch_metric_alarms
137137
- aws_kms_key_rotation_statuses
138138
- aws_iam_policy_default_versions
139139
foundational_security:
@@ -299,7 +299,7 @@ vars:
299299
- aws_s3_accounts
300300
- aws_ec2_security_groups
301301
- aws_sns_subscriptions
302-
- aws_cloudwatch_alarms
302+
- aws_cloudwatch_metric_alarms
303303
- aws_cloudwatchlogs_metric_filters
304304
- aws_kms_key_rotation_statuses
305305
imds_v2:
@@ -450,5 +450,5 @@ vars:
450450
- aws_s3_bucket_lifecycles
451451
- aws_cloudwatchlogs_metric_filters
452452
- aws_sns_subscriptions
453-
- aws_cloudwatch_alarms
453+
- aws_cloudwatch_metric_alarms
454454
- aws_kms_key_rotation_statuses

β€Žtransformations/aws/compliance-premium/tests/bigquery.ymlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ spec:
33
name: aws
44
path: cloudquery/aws
55
registry: cloudquery
6-
version: "v34.9.0" # latest version of source aws plugin
6+
version: "v35.0.0" # latest version of source aws plugin
77
destinations: ["bigquery"]
88
tables: ["*"]
99
---
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
4+
DATABASE="athena_integration"
5+
DATA_LOCATION="s3://cq-integration-tests/aws-compliance-athena/data"
6+
OUTPUT_LOCATION="s3://cq-integration-tests/dbt/"
7+
8+
run_query() {
9+
local query="$1"
10+
local execution_id
11+
execution_id=$(aws athena start-query-execution \
12+
--query-string "$query" \
13+
--query-execution-context Database="$DATABASE" \
14+
--result-configuration OutputLocation="$OUTPUT_LOCATION" \
15+
--output text --query QueryExecutionId)
16+
17+
while true; do
18+
local state
19+
state=$(aws athena get-query-execution --query-execution-id "$execution_id" --output text --query QueryExecution.Status.State)
20+
case "$state" in
21+
SUCCEEDED) return 0 ;;
22+
FAILED | CANCELLED)
23+
aws athena get-query-execution --query-execution-id "$execution_id" --output text --query QueryExecution.Status.StateChangeReason >&2
24+
return 1
25+
;;
26+
esac
27+
sleep 2
28+
done
29+
}
30+
31+
run_query "CREATE EXTERNAL TABLE IF NOT EXISTS aws_cloudwatch_metric_alarms (
32+
account_id string,
33+
region string,
34+
arn string,
35+
alarm_name string,
36+
actions_enabled boolean,
37+
alarm_actions array<string>,
38+
metrics string
39+
)
40+
STORED AS PARQUET
41+
LOCATION '${DATA_LOCATION}/aws_cloudwatch_metric_alarms/'"

β€Žtransformations/aws/compliance-premium/tests/postgres.ymlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ spec:
33
name: aws
44
path: cloudquery/aws
55
registry: cloudquery
6-
version: "v34.9.0" # latest version of source aws plugin
6+
version: "v35.0.0" # latest version of source aws plugin
77
destinations: ["postgresql"]
88
tables: ["*"]
99
---

β€Žtransformations/aws/compliance-premium/tests/s3.ymlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ spec:
33
name: aws
44
path: cloudquery/aws
55
registry: cloudquery
6-
version: "v34.9.0" # latest version of source aws plugin
6+
version: "v35.0.0" # latest version of source aws plugin
77
destinations: ["s3"]
88
tables: ["*"]
99
---

0 commit comments

Comments
Β (0)