Skip to content

Instantly share code, notes, and snippets.

@heronrs
Created January 3, 2022 16:54
Show Gist options
  • Save heronrs/50cef56b790fb55e918d8480d9ffa510 to your computer and use it in GitHub Desktop.
Save heronrs/50cef56b790fb55e918d8480d9ffa510 to your computer and use it in GitHub Desktop.
convox RACK_URL credentials

Get RACK_URL host and credentials

Go to the EKS UI and select the cluster. Then click Configuration -> Compute and click the Node Group name.

On the Node Group UI, click the Autoscaling group name associated with the Node Group. In the Autoscaling group UI, go to Network and select Edit. Change the subnet to public(it should be something like rackname public 0)

Go back to Autoscaling Group and click the Launch Template link.

In the Launch Template UI, click actions and select Modify Template. Add a key-pair login and under Advanced Network Configuration enable auto-assign public IP.

After all the above steps, go back to the Autoscaling Group > Instance refresh > Start instance refresh

When the refresh is complete go to Instance Management > click one of the instances and get the Public IP Address in the instance UI.

With the IP and ssh key-pair we now have access to the cluster nodes. Now we need to get the rack API hostname and password.

Ssh into one of the instances ssh -i /path/to/key ec2-user@instance-ip

Find the API container name with docker ps|grep -i api

Get the password environment variable docker inspect container-name|grep -i password

To retrieve the API hostname we need to check the nginx conf file.

Get the nginx container name with docker ps|grep -i nginx. Access the container with docker exec -ti container-name bash

Finally grab the API hostname with cat nginx.conf|grep -i api

To access the rack now we can just export RACK_URL=https://convox:PASSWORD@HOSTNAME and convox rack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment