You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add column managed_query_results_enabled, managed_query_results_kms_key and enable_minimum_encryption_configuration in table aws_athena_workgroup (#2678)
Copy file name to clipboardExpand all lines: docs/tables/aws_athena_workgroup.md
+81-52Lines changed: 81 additions & 52 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,98 +18,127 @@ The `aws_athena_workgroup` table in Steampipe provides you with information abou
18
18
Explore the various workgroups within your AWS Athena service to gain insights into their basic details such as name, description, and creation time. This can be useful for understanding your workgroup configuration and identifying any potential areas for optimization or reorganization.
19
19
20
20
```sql+postgres
21
-
select
22
-
name,
23
-
description,
24
-
effective_engine_version,
25
-
output_location,
26
-
creation_time
27
-
from
28
-
aws_athena_workgroup
29
-
order by
21
+
select
22
+
name,
23
+
description,
24
+
effective_engine_version,
25
+
output_location,
26
+
creation_time
27
+
from
28
+
aws_athena_workgroup
29
+
order by
30
30
creation_time;
31
31
```
32
32
33
33
```sql+sqlite
34
-
select
35
-
name,
36
-
description,
37
-
effective_engine_version,
38
-
output_location,
39
-
creation_time
40
-
from
41
-
aws_athena_workgroup
42
-
order by
34
+
select
35
+
name,
36
+
description,
37
+
effective_engine_version,
38
+
output_location,
39
+
creation_time
40
+
from
41
+
aws_athena_workgroup
42
+
order by
43
43
creation_time;
44
44
```
45
45
46
46
### List all workgroups using engine 3
47
47
Determine the areas in which workgroups are utilizing a specific version of the Athena engine. This is useful for assessing upgrade needs or understanding the distribution of engine versions across your workgroups.
48
48
49
49
```sql+postgres
50
-
select
51
-
name,
52
-
description
53
-
from
54
-
aws_athena_workgroup
55
-
where
50
+
select
51
+
name,
52
+
description
53
+
from
54
+
aws_athena_workgroup
55
+
where
56
56
effective_engine_version = 'Athena engine version 3';
57
57
```
58
58
59
59
```sql+sqlite
60
-
select
61
-
name,
62
-
description
63
-
from
64
-
aws_athena_workgroup
65
-
where
60
+
select
61
+
name,
62
+
description
63
+
from
64
+
aws_athena_workgroup
65
+
where
66
66
effective_engine_version = 'Athena engine version 3';
67
67
```
68
68
69
69
### Count workgroups in each region
70
70
Assess the distribution of workgroups across different regions to understand workload allocation and capacity planning. This can assist in identifying regions that may be under or over-utilized.
71
71
72
72
```sql+postgres
73
-
select
74
-
region,
75
-
count(*)
76
-
from
77
-
aws_athena_workgroup
78
-
group by
73
+
select
74
+
region,
75
+
count(*)
76
+
from
77
+
aws_athena_workgroup
78
+
group by
79
79
region;
80
80
```
81
81
82
82
```sql+sqlite
83
-
select
84
-
region,
85
-
count(*)
86
-
from
87
-
aws_athena_workgroup
88
-
group by
83
+
select
84
+
region,
85
+
count(*)
86
+
from
87
+
aws_athena_workgroup
88
+
group by
89
89
region;
90
90
```
91
91
92
92
### List disabled workgroups
93
93
Determine the areas in which workgroups are inactive, providing insights into resource usage and potential areas for optimization or re-allocation.
94
94
95
95
```sql+postgres
96
-
select
97
-
name,
98
-
description,
96
+
select
97
+
name,
98
+
description,
99
99
creation_time
100
-
from
101
-
aws_athena_workgroup
100
+
from
101
+
aws_athena_workgroup
102
102
where
103
103
state = 'DISABLED';
104
104
```
105
105
106
106
```sql+sqlite
107
-
select
108
-
name,
109
-
description,
107
+
select
108
+
name,
109
+
description,
110
110
creation_time
111
-
from
112
-
aws_athena_workgroup
111
+
from
112
+
aws_athena_workgroup
113
113
where
114
114
state = 'DISABLED';
115
+
```
116
+
117
+
### List workgroups without encryption at rest
118
+
Detect workgroups that are not encrypting query results at rest so you can remediate resources that violate the AWS Config rule `athena-workgroup-encrypted-at-rest`.
0 commit comments