Skip to content

Commit

Permalink
aws updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreyaven committed Jul 17, 2024
1 parent 6f11eee commit 3b56810
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions notebooks/aws/aws.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@
"outputs": [],
"source": [
"%%stackql\n",
"SELECT region, instanceType, COUNT(*) as num_instances\n",
"SELECT region, instance_type, COUNT(*) as num_instances\n",
"FROM aws.ec2.instances\n",
"WHERE region = '$region'\n",
"GROUP BY instanceType"
"GROUP BY instance_type"
]
},
{
Expand All @@ -62,7 +62,7 @@
"metadata": {},
"outputs": [],
"source": [
"_.plot(kind='pie', y='num_instances', labels=_['instanceType'], title='Instances by Type', autopct='%1.1f%%')"
"_.plot(kind='pie', y='num_instances', labels=_['instance_type'], title='Instances by Type', autopct='%1.1f%%')"
]
},
{
Expand Down Expand Up @@ -90,16 +90,6 @@
"WHERE region = '$region'"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"%%stackql\n",
"select PolicyName, Arn from aws.iam.policies where region = '$region'"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand All @@ -108,7 +98,7 @@
"source": [
"%%stackql\n",
"SELECT region, function_name\n",
"FROM aws.lambda.functions\n",
"FROM aws.lambda.functions_list_only\n",
"WHERE region IN (\n",
"'us-east-1',\n",
"'us-east-2',\n",
Expand Down

0 comments on commit 3b56810

Please sign in to comment.