Skip to content

Commit 098c4a7

Browse files
authored
Merge pull request #5 from stackql/feature/updates
provider updates
2 parents e4d93a3 + bf509ff commit 098c4a7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ USER stackql
1010
RUN stackql exec 'registry pull aws' || (echo "Failed to pull aws provider" && exit 1)
1111
RUN stackql exec 'registry pull google' || (echo "Failed to pull google provider" && exit 1)
1212
RUN stackql exec 'registry pull github' || (echo "Failed to pull github provider" && exit 1)
13-
# RUN stackql exec 'registry pull azure'
13+
RUN stackql exec 'registry pull azure' || (echo "Failed to pull azure provider" && exit 1)
1414
# RUN stackql exec 'registry pull k8s'
1515
# RUN stackql exec 'registry pull netlify'
1616
# RUN stackql exec 'registry pull okta'

Diff for: notebooks/aws/aws.ipynb

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727
"source": [
2828
"%%stackql\n",
2929
"SELECT \n",
30-
"state, \n",
30+
"JSON_EXTRACT(state, '$$.Name') as instance_state, \n",
3131
"count(*) as num_instances\n",
3232
"FROM aws.ec2.instances \n",
33-
"WHERE region IN ($regions)\n",
33+
"WHERE region = '$region'\n",
3434
"GROUP BY state"
3535
]
3636
},
@@ -40,7 +40,7 @@
4040
"metadata": {},
4141
"outputs": [],
4242
"source": [
43-
"_.plot(kind='bar', title='Instances by State', x='state', y='num_instances')"
43+
"_.plot(kind='bar', title='Instances by State', x='instance_state', y='num_instances')"
4444
]
4545
},
4646
{

0 commit comments

Comments
 (0)