WebPagetest Forums
EC2 Amazon Agents - SSL Certs - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: Private Instances (/forumdisplay.php?fid=12)
+--- Thread: EC2 Amazon Agents - SSL Certs (/showthread.php?tid=13876)



EC2 Amazon Agents - SSL Certs - darragh - 08-19-2015 01:04 AM

Hi,

I am using the Amazon EC2 WPT solution. I want to see if it is possible to use ssl certs to test certain webpages but I cant see any nice way to do this.
I think i would need to install the Cert on the Amazon Agent, but if I do this then that Agent will be removed after an hour of non-use. Is there a way to disable this feature (i.e. keep the Amazon Agent alive with the installed Cert?). Or can you think of a better approach?

Many thanks for your help!


RE: EC2 Amazon Agents - SSL Certs - pmeenan - 08-20-2015 06:42 AM

If you disable the auto-scaling in settings.ini and launch the instances manually it should work. Another option is to snapshot a configured instance and use that AMI ID in locations.ini.ec2 instead of the default WPT AMI's. That way when it spins up new instances it will use your image with the cert installed.


RE: EC2 Amazon Agents - SSL Certs - darragh - 08-24-2015 08:01 PM

Thanks for your suggestion Patrick. I have opted for the first option, disabling the auto-scaling in settings.ini.
To disable auto-scaling I have set
EC2.default=eu-west-1
EC2.eu-west-1.min=1
EC2.eu-west-1.max=1
I launch the ssl instance and works great, however WPT launches another Agent instance also which means I have 2 Agents connected to eu-west-1
From http://<wpt_server>/install
eu-west-1-group : Europe (Ireland)
eu-west-1 : Europe (Ireland) - 4 agents connected
eu-west-1_IE11 : Europe (Ireland) - 4 agents connected

Are the changes I made to settings.ini above enough to disable the auto-scaling?


RE: EC2 Amazon Agents - SSL Certs - pmeenan - 08-24-2015 11:40 PM

It would be cleaner to just remove the ec2_key and ec2_secret from the config: https://github.com/WPO-Foundation/webpagetest/blob/master/www/settings/settings.ini.sample#L164

That will actually turn off the scaling directly.


RE: EC2 Amazon Agents - SSL Certs - darragh - 08-25-2015 12:54 AM

I decided to use the second option and launch the instance from a pre-configured AMI. Works great, Thank you for you help!