Skip to content

Instantly share code, notes, and snippets.

@cisaacstern
Created November 1, 2021 01:44
Show Gist options
  • Save cisaacstern/7a5273c892f3b3854b02512e398c2f8e to your computer and use it in GitHub Desktop.
Save cisaacstern/7a5273c892f3b3854b02512e398c2f8e to your computer and use it in GitHub Desktop.
import yaml
bakery_database_entry = {
"org.test-osn.bakery.aws.us-west-2": {
"region": "aws.us-west-2",
"targets": {
"osn": {
"region": "aws.us-west-2",
"description": "Open Storage Network (OSN) bucket",
"public": {
"prefix": "Pangeo/pangeo-forge",
"protocol": "s3",
"storage_options": {
"anon": True,
"client_kwargs": {"endpoint_url": "https://ncsa.osn.xsede.org"},
},
},
"private": {
"prefix": "Pangeo/pangeo-forge",
"protocol": "s3",
"storage_options": {
"key": "{OSN_KEY}",
"secret": "{OSN_SECRET}",
"client_kwargs": {"endpoint_url": "https://ncsa.osn.xsede.org"},
"default_cache_type": "none",
"default_fill_cache": False,
"use_listings_cache": False,
},
},
}
},
"cluster": None,
}
}
with open("test-bakery.yaml", mode="w") as f:
f.write(yaml.dump(bakery_database_entry))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment