Skip to content

Commit 3b56810

Browse files
committed
aws updates
1 parent 6f11eee commit 3b56810

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

notebooks/aws/aws.ipynb

+4-14
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@
5050
"outputs": [],
5151
"source": [
5252
"%%stackql\n",
53-
"SELECT region, instanceType, COUNT(*) as num_instances\n",
53+
"SELECT region, instance_type, COUNT(*) as num_instances\n",
5454
"FROM aws.ec2.instances\n",
5555
"WHERE region = '$region'\n",
56-
"GROUP BY instanceType"
56+
"GROUP BY instance_type"
5757
]
5858
},
5959
{
@@ -62,7 +62,7 @@
6262
"metadata": {},
6363
"outputs": [],
6464
"source": [
65-
"_.plot(kind='pie', y='num_instances', labels=_['instanceType'], title='Instances by Type', autopct='%1.1f%%')"
65+
"_.plot(kind='pie', y='num_instances', labels=_['instance_type'], title='Instances by Type', autopct='%1.1f%%')"
6666
]
6767
},
6868
{
@@ -90,16 +90,6 @@
9090
"WHERE region = '$region'"
9191
]
9292
},
93-
{
94-
"cell_type": "code",
95-
"execution_count": null,
96-
"metadata": {},
97-
"outputs": [],
98-
"source": [
99-
"%%stackql\n",
100-
"select PolicyName, Arn from aws.iam.policies where region = '$region'"
101-
]
102-
},
10393
{
10494
"cell_type": "code",
10595
"execution_count": null,
@@ -108,7 +98,7 @@
10898
"source": [
10999
"%%stackql\n",
110100
"SELECT region, function_name\n",
111-
"FROM aws.lambda.functions\n",
101+
"FROM aws.lambda.functions_list_only\n",
112102
"WHERE region IN (\n",
113103
"'us-east-1',\n",
114104
"'us-east-2',\n",

0 commit comments

Comments
 (0)