Skip to content

Commit

Permalink
use service account
Browse files Browse the repository at this point in the history
  • Loading branch information
neon-ninja committed Jul 29, 2024
1 parent 059f97c commit 2526c1a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions update.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 14,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -34,8 +34,9 @@
"metadata": {},
"outputs": [],
"source": [
"ee.Authenticate()\n",
"ee.Initialize()"
"service_account = 'service-account@iron-dynamics-294100.iam.gserviceaccount.com'\n",
"credentials = ee.ServiceAccountCredentials(service_account, '.private-key.json')\n",
"ee.Initialize(credentials)"
]
},
{
Expand Down

0 comments on commit 2526c1a

Please sign in to comment.