Skip to content

Commit

Permalink
Disable AWS EC2 metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
Tommel71 committed Jan 8, 2025
1 parent 6e18880 commit 22259bb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/graphsenselib/ingest/delta/sink.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,10 @@ def write_delta(
storage_options = {
"AWS_ALLOW_HTTP": "true",
"AWS_S3_ALLOW_UNSAFE_RENAME": "true",
"AWS_EC2_METADATA_DISABLED": "true", # right now only works as env var
# right now only works as env var
# "AWS_EC2_METADATA_DISABLED": "true",
}
os.environ["AWS_EC2_METADATA_DISABLED"] = "true"
storage_options.update(self.s3_credentials)
else:
storage_options = {}
Expand Down

0 comments on commit 22259bb

Please sign in to comment.