Skip to content

Commit 01089d2

Browse files
committed
added notebook
1 parent 92b8a0a commit 01089d2

File tree

2 files changed

+67
-1
lines changed

2 files changed

+67
-1
lines changed

.github/workflows/stackql-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@ jobs:
3535
stack_dir: 'aws-stack'
3636
stack_env: 'dev'
3737
env_vars: 'AWS_REGION=us-east-1'
38-
show_queries: 'true'
38+
# show_queries: 'true'
3939
# log_level: 'debug'

notebooks/aws.ipynb

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": null,
6+
"metadata": {
7+
"vscode": {
8+
"languageId": "plaintext"
9+
}
10+
},
11+
"outputs": [],
12+
"source": [
13+
"%load_ext pystackql.magic"
14+
]
15+
},
16+
{
17+
"cell_type": "code",
18+
"execution_count": null,
19+
"metadata": {
20+
"vscode": {
21+
"languageId": "plaintext"
22+
}
23+
},
24+
"outputs": [],
25+
"source": [
26+
"%stackql registry pull aws"
27+
]
28+
},
29+
{
30+
"cell_type": "code",
31+
"execution_count": null,
32+
"metadata": {
33+
"vscode": {
34+
"languageId": "plaintext"
35+
}
36+
},
37+
"outputs": [],
38+
"source": [
39+
"region = \"us-east-1\""
40+
]
41+
},
42+
{
43+
"cell_type": "code",
44+
"execution_count": null,
45+
"metadata": {
46+
"vscode": {
47+
"languageId": "plaintext"
48+
}
49+
},
50+
"outputs": [],
51+
"source": [
52+
"%%stackql\n",
53+
"select * from aws.cloud_control.resource_requests\n",
54+
"where data__ResourceRequestStatusFilter = '{\"OperationStatuses\": [\"FAILED\", \"SUCCESS\"], \"Operations\": [\"CREATE\", \"UPDATE\", \"DELETE\"]}'\n",
55+
"and region = '$region';"
56+
]
57+
}
58+
],
59+
"metadata": {
60+
"language_info": {
61+
"name": "python"
62+
}
63+
},
64+
"nbformat": 4,
65+
"nbformat_minor": 2
66+
}

0 commit comments

Comments
 (0)