mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-13 15:24:24 +00:00
chore(steampipe): add query examples
This commit is contained in:
12
snippets/steampipe.sql
Normal file
12
snippets/steampipe.sql
Normal file
@@ -0,0 +1,12 @@
|
||||
-- Get help
|
||||
.help
|
||||
|
||||
-- View connections, tables & column information
|
||||
.inspect
|
||||
|
||||
|
||||
-- List AWS IAM users and their group
|
||||
SELECT name FROM aws_iam_role
|
||||
SELECT iam_user ->> 'UserName' AS User, name AS Group
|
||||
FROM aws_iam_group
|
||||
CROSS JOIN jsonb_array_elements(users) AS iam_user
|
||||
Reference in New Issue
Block a user