Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aws updates #8

Merged
merged 1 commit into from
Jul 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading