Skip to content

Instantly share code, notes, and snippets.

@GeneralTesler
Created December 6, 2019 03:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GeneralTesler/d7c5ff87214a23df2e92327b3b2882a3 to your computer and use it in GitHub Desktop.
Save GeneralTesler/d7c5ff87214a23df2e92327b3b2882a3 to your computer and use it in GitHub Desktop.
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