chore(steampipe): add query examples

This commit is contained in:
Michele Cereda
2024-08-14 18:23:19 +02:00
parent 95edda3634
commit e47b044295
2 changed files with 15 additions and 0 deletions

12
snippets/steampipe.sql Normal file
View 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