Skip to main content

This package provides ability to use amazon aws as proxy with everchanging IP.

Project description

EC2 Proxy

https://img.shields.io/pypi/v/ec2_proxy.svg https://img.shields.io/travis/AG4lyf/ec2_proxy.svg Documentation Status

This package provides the ability to use Amazon AWS as a proxy with ever-changing IP.

Install a Proxy Server

Read Setup for instructions on how to install a proxy server on an EC2 instance.

How to Use

  1. Install the package:

    pip install ec2_proxy

  2. Create an AWS account and obtain the access key and secret key from Here.

There are 2 ways to use this package:

Way #1 - Use it with the credentials that are present in your .aws folder in your home directory

from ec2_proxy import TProxy

tp = TProxy(<instance_id_here>)
ip = tp.start()
print(ip)

Way #2 - Use it with the credentials that you will pass at runtime

from ec2_proxy import TProxy
from botocore.config import Config
import boto3

region = 'us-west-2'
access_key_id = 'YOUR_ACCESS_KEY_ID'
secret_access_key = 'YOUR_SECRET_ACCESS_KEY'

ec2 = boto3.client('ec2', region_name=region, aws_access_key_id=access_key_id, aws_secret_access_key=secret_access_key)
tp = TProxy(<instance_id_here>, ec2=ec2)
ip = tp.start()
print(ip)

History

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ec2_proxy-0.1.2.tar.gz (11.0 kB view hashes)

Uploaded Source

Built Distribution

ec2_proxy-0.1.2-py2.py3-none-any.whl (4.3 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page