Skip to content

Instantly share code, notes, and snippets.

@solebox
Created October 4, 2021 16:30
Show Gist options
  • Save solebox/a000206d4311e1e786ce398d2bc267f8 to your computer and use it in GitHub Desktop.
Save solebox/a000206d4311e1e786ce398d2bc267f8 to your computer and use it in GitHub Desktop.
How To get a Schema from the glue schema registry using boto
# registry name in glue catalog is test and the name of the schema uploaded is topology :)
glue = boto3.client('glue')
result = glue.get_schema_version(SchemaId={'SchemaName': 'topology', 'RegistryName': "test"}, SchemaVersionNumber={"LatestVersion": True})
print(result['SchemaDefinition'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment