Skip to content

Instantly share code, notes, and snippets.

@oivoodoo
Created May 15, 2017 06:07
Show Gist options
  • Save oivoodoo/5e741d72fdcb6bade599a3d5aded05df to your computer and use it in GitHub Desktop.
Save oivoodoo/5e741d72fdcb6bade599a3d5aded05df to your computer and use it in GitHub Desktop.
describe EMR
import json
from boto3 import client
def date_handler(obj):
if hasattr(obj, 'isoformat'):
return obj.isoformat()
else:
raise TypeError
cluster_id = "<cluster-id>"
client = client('emr', 'us-east-1')
print(json.dumps(client.describe_cluster(ClusterId=cluster_id),
default=date_handler))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment