Current time: 10-15-2019, 01:40 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Hardening AWS EC2 AMI image
03-08-2018, 06:35 AM
Post: #7
RE: Hardening AWS EC2 AMI image
The agents do not need to be reachable. They poll the server for work and post the results (all over HTTP or HTTPS through the web interface). I usually set them up with the default ACL that blocks all inbound external traffic.

The agents don't need to be long lived but the server does. For the agent's user data you provide it with the server's private network IP (or name) and whenever the agent starts it will adopt the configuration from the user data. You don't need to ssh to configure it, it reads the configuration from the instance user data. i.e. a user data string like:

wpt_server=agent.webpagetest.org wpt_loc=ec2-us-east-1 wpt_key=aaabbbccc

That is the actual user data that is used for the EC2 instances in Virginia that connect to the public WebPageTEst (munis the key which was changed). In the case of using the private IP of the server, you just pass that for the wpt_server= paramater.

And yes, the screen session is for the agent. The server doesn't run anything in screen and just runs the nginx daemon and cron for all of it's work.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Hardening AWS EC2 AMI image - Gordo - 03-07-2018, 02:24 AM
RE: Hardening AWS EC2 AMI image - pmeenan - 03-08-2018, 12:27 AM
RE: Hardening AWS EC2 AMI image - Gordo - 03-08-2018, 04:07 AM
RE: Hardening AWS EC2 AMI image - pmeenan - 03-08-2018, 04:29 AM
RE: Hardening AWS EC2 AMI image - pmeenan - 03-08-2018, 04:29 AM
RE: Hardening AWS EC2 AMI image - Gordo - 03-08-2018, 06:10 AM
RE: Hardening AWS EC2 AMI image - pmeenan - 03-08-2018 06:35 AM
RE: Hardening AWS EC2 AMI image - Gordo - 03-09-2018, 07:56 AM
RE: Hardening AWS EC2 AMI image - pmeenan - 03-09-2018, 08:52 AM
RE: Hardening AWS EC2 AMI image - Gordo - 04-01-2018, 12:39 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)