How can I assign a new IP address (or Elastic IP) to an already existing AWS EC2 instance using boto library.
How to change the IP address of Amazon EC2 instance using boto library
1.2k Views Asked by Pramod At
1
There are 1 best solutions below
Related Questions in PYTHON
- new thread blocks main thread
- Extracting viewCount & SubscriberCount from YouTube API V3 for a given channel, where channelID does not equal userID
- Display images on Django Template Site
- Difference between list() and dict() with generators
- How can I serialize a numpy array while preserving matrix dimensions?
- Protractor did not run properly when using browser.wait, msg: "Wait timed out after XXXms"
- Why is my program adding int as string (4+7 = 47)?
- store numpy array in mysql
- how to omit the less frequent words from a dictionary in python?
- Update a text file with ( new words+ \n ) after the words is appended into a list
- python how to write list of lists to file
- Removing URL features from tokens in NLTK
- Optimizing for Social Leaderboards
- Python : Get size of string in bytes
- What is the code of the sorted function?
Related Questions in AMAZON-WEB-SERVICES
- "Access Denied" - User's Permissions to S3 Bucket
- Cohort analysis with Amazon Redshift / PostgreSQL
- Using Amazon KMS service on Heroku
- can't ssh in after cloning an EC2 instance on Amazon AWS
- Using HDFS with Apache Spark on Amazon EC2
- How can I access Mule ESB Community edition via browser?
- AWS EC2: Migrating from Windows to Linux Server
- AWS ELB Load Balancer: is it possible to set multiple session cookies?
- AWS Flow Framework: Can we run activity worker and activity task on different EC2 instances
- Unable to access files from public s3 bucket with boto
- Cloudfront stream only part of the video
- s3cmd not working as cron-task when echos/dates are added
- How to deploy django 1.8 on Elastic Beanstalk using Docker
- InstanceProfile is required for creating cluster - create python function to install module
- How to fix WordPress HTTPS issues when behind an Amazon Load Balancer?
Related Questions in BOTO
- Unable to access files from public s3 bucket with boto
- InstanceProfile is required for creating cluster - create python function to install module
- S3BotoStorage and Unit Testing
- Check Domain Availability using Boto Route53
- Getting higher number of aws snapshot than the snapshots I've in my AWS account
- How do I Start/Stop AWS RDS Instances using Boto?
- AmazonS3 - connecting with Python Boto according specific permissions
- Why won't Boto commands run in UserData when outbound traffic permissions are locked down?
- Shell Script for AWS EC2 init
- Check A-Record Status using Boto Route53 after creation
- AttributeError: 'Table' object has no attribute 'update_item' - DynamoDB v2 API
- Fetching ElastiCache Tags
- How to find Unused Security Groups of all AWS Security Groups?
- Boto MWS Python Response issue
- Why is this python boto S3 multipart upload code not working?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Make sure you have set properly with
~/.botoand connect to aws, have the boto module ready in python. If not, go through this first: Getting Started with BotoFor example, you need assign a new EIP
54.12.23.34to the instancei-12345678Make sure, EIP has been allocated(existed) and you can get its
allocation_id.then call associate_address and give
instance_idorprivate_ip_address, then you should be fine to assign the EIP to Amazon EC2 instance using boto libraryassociate_address usage:
So you will have the command as: