WebPagetest Forums
Assign elastic ip to ec2 instance - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: Private Instances (/forumdisplay.php?fid=12)
+--- Thread: Assign elastic ip to ec2 instance (/showthread.php?tid=13606)



Assign elastic ip to ec2 instance - suraj - 03-16-2015 11:18 PM

I have a Webpagetest private instance (ec2 instance) running on AWS.
Which is able to start and stop the test agents as needed.

I want to assign the elastic IP to these test agents once server starts them
to access our internal server.

Is there a way to assign an elastic ip address to the agent started by private instance ?


RE: Assign elastic ip to ec2 instance - chchrist - 08-12-2015 10:49 PM

I have the same issue. I took a look at the code and it does not seem to be possible.
Is there another way to test internal servers?


RE: Assign elastic ip to ec2 instance - suraj - 08-12-2015 11:52 PM

I solved this problem using custom ruby scripts.
I used aws cli to get the running instance and assign elastic ip to it.
i don't know if pmeenan have solved this now.


RE: Assign elastic ip to ec2 instance - chchrist - 08-13-2015 12:04 AM

So you run webpagetest and then for each agent you give it an EIP? Could you give us more info?


RE: Assign elastic ip to ec2 instance - suraj - 08-13-2015 12:20 AM

https://aws.amazon.com/cli/
refer this doc, it is very helpful.


RE: Assign elastic ip to ec2 instance - chchrist - 08-13-2015 01:05 AM

Ah, cool I will give it a go but it would be great to be done from webpagetest


RE: Assign elastic ip to ec2 instance - suraj - 08-13-2015 02:28 AM

yes, i was also expecting this, but did not get reply from webpagetest so i had to choose the option of writing custom scripts.