When working with machines provisioned using Amazon EC2, one can use a Lumino Controller AMI to provision, deploy, configure and controls X applications within the cloud environment.The controller AMI includes a Lumino Server, a Lumino Agent, and an influx instance. Applications can be run on the controller machine (depending on its capacity) or additional machines can be provisioned and the controller machine configured to be able to deploy and control applications on the provisioned machine. Additionally, one can deploy just a Lumino Agent in the cloud environment and connect it to an on-premise Lumino Server instance allowing on-premise users visibility into cloud environments over a secure connection.
In this section, we'll walk through how to use the pre-bundled nvx-controller AMI to bootstrap a cloud environment.
Provisioning a Lumino Controller AMI
Execute the following steps to provision an X Controller
- Login to AWS/EC2
- Select AMIs from the left-hand sidebar
- Change the filter from "Owned by me" to "Public images"
- Enter "nvx-controller" into the search bar, and select the latest
- Launch a new machine using the nvx-controller-<version> AMI
- Click on AMIs on the left panel of the EC2 Management Console, select the AMI and click Launch
- A minimum of 4GB RAM is recommended (we recommend using a t2.large).
- In the launch wizard when you get to the section on configuring the security group, create a Custom TCP rule to allow access to port 8001.
- When prompted for a key-pair, create a new one, or use an existing one you already have access to. If you need additional assistance, please see here
- Wait for the instance to launch
- (Recommended) Configure local hostname address in /etc/hosts:
This step is recommended if you plan to launch applications on this host that use loopback or 0.0.0.0 addresses to ensure that the address can be resolved.- Locate the Private DNS entry by clicking on the newly launched instance:
- ssh into the machine using the key pair you selected during configuration and the public IP address shown for your instance.
- ssh -i ~/Downloads/YOUR_PEM_FILE.pem ec2-user@public_ipv4_ip
using vi or another editor edit /etc/hosts to add the private DNS address from above to the 127.0.0.1 entry:
sudo su - root
vi /etc/hosts/etc/hosts
- Locate the Private DNS entry by clicking on the newly launched instance:
- Record the public address/name of the new machine (e.g. the IPv4 address shown above).
- Go to http://<publicAddress>:8001
- You should see the X Platform Lumino console, you can log in with admin/admin.
- (Optional) If you are not able to get to the console or you see an error that the agent is not available, it is possible that the hostname has not been applied. In this case reboot your instance.
- Note: This needs to be done only once after a fresh provision
- Repeat step 11
The controller is ready for use.