Skip to content

Instantly share code, notes, and snippets.

Created December 6, 2019 03:18
What would you like to do?
boto3 list EC2 instance APIs using resource handler
import boto3
if __name__ == "__main__":
session = boto3.session.Session(region_name="us-east-1")
resource = session.resource("ec2")
operations = resource.instances._handler.service_context.service_model.operation_names
[print(op) for op in operations]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment