Comments (1)
Thanks for reporting this. I'm not able to replicate the issue. Below is an example where I created a virtualenv and ran pip install aws-ec2-assign-elastic-ip
. I can then import the ec2_metadata
package and also assign IPs.
If you could show me what the pip install
output looks like, it'd be great. Might be that we could find some clues there.
Package list
(venv) sebdah@ip-10-10-92-207:~/test$ pip freeze
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
aws-ec2-assign-elastic-ip==0.10.2
boto3==1.12.39
botocore==1.15.39
cached-property==1.5.1
certifi==2020.4.5.1
chardet==3.0.4
docutils==0.15.2
ec2-metadata==1.8.0
futures==3.3.0
idna==2.9
jmespath==0.9.5
netaddr==0.7.19
python-dateutil==2.8.1
requests==2.23.0
s3transfer==0.3.3
six==1.14.0
urllib3==1.25.8
Importing ec2_metadata
(venv) sebdah@ip-10-10-92-207:~/test$ python
Python 2.7.15+ (default, Oct 7 2019, 17:39:04)
[GCC 7.4.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import ec2_metadata
>>> quit()
Running the application
(venv) sebdah@ip-10-10-92-207:~/test$ aws-ec2-assign-elastic-ip --dry-run
2020-04-10 04:40:17,712 - aws-ec2-assign-eip - INFO - Connected to AWS EC2 in eu-west-1
2020-04-10 04:40:17,909 - aws-ec2-assign-eip - INFO - Would assign IP 34.247.120.9
AWS CLI details
(venv) sebdah@ip-10-10-92-207:~/test$ aws --version
aws-cli/1.16.184 Python/2.7.15+ Linux/4.15.0-1041-aws botocore/1.12.174
from aws-ec2-assign-elastic-ip.
Related Issues (20)
- Daemon HOT 2
- Reassociate flag? HOT 1
- Error While use aws-ec2-assign-elastic-ip
- Manage network interface only EIP HOT 2
- disassociate_first optional flag HOT 10
- Does this exist for ebs too? HOT 1
- Update release in PyPI HOT 1
- Fatal errors with current version (NameError: global name 'expected_state' is not defined) HOT 4
- Race condition results in EIP association failing HOT 4
- KeyError on instance-id
- ValueError: Required parameter public_ip not set HOT 1
- 0.8.0 with --valid-ips results in 'No unassociated Elastic IP found!' error HOT 2
- Assign from a pool of EIP HOT 1
- v0.10.2 is breaking awscli HOT 2
- aws-ec2-assign-elastic-ip is not assigning EIP's to the EC2 instances HOT 4
- Need guidance on executing in Windows HOT 1
- ModuleNotFoundError: No module named 'ConfigParser'
- Implement dry run mode HOT 1
- Timeout when CIDR=0.0.0.0/0 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-ec2-assign-elastic-ip.