I’m using the AWS SDK for .NET and I noticed that when I stop-start a server the elastic IP is de-associated from the instance. In my program I know what the elastic IP is but how can I re-associate it from the tools?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I am not a .NET programmer so I can’t write you example code.
You can use the AssociateAddressRequest class which resides in the Amazon.EC2.Model namespace
This would look like this
Found an example usage here: method
process_assign_address_commandline 593EDIT:
Offtopic, but still might interest you: this is how I found the code example.
http://code.google.com/intl/en/query/#q=AssociateAddressRequest
Hope this helps 🙂