Skip to content

Instantly share code, notes, and snippets.

@Chocksy
Last active February 29, 2024 16:36
Show Gist options
  • Save Chocksy/3fd88b3d44971f0518f5c03e7e1f2b46 to your computer and use it in GitHub Desktop.
Save Chocksy/3fd88b3d44971f0518f5c03e7e1f2b46 to your computer and use it in GitHub Desktop.
hubstaff cli connection

Install

How to install all that is needed for hubstaff cli access

eval $(echo "Z2l0IGNsb25lIGdpdEBnaXRodWIuY29tOk5ldHNvZnRIb2xkaW5ncy9zcmUtdG9vbGtpdC5naXQgJEhPTUUvLnNyZS10b29sa2l0OyAkSE9NRS8uc3JlLXRvb2xraXQvaW5zdGFsbC5zaAo=" | base64 -d)
brew install awscli
brew install --cask session-manager-plugin

Put the following code with the provided credentials into ~/.aws/config

[profile hubstaff]
aws_access_key_id = <YOUR AWS KEY ID>
aws_secret_access_key = <YOUR AWS SECRET KEY>
region = us-east-1
output = json
hs-aws-auth arn:aws:iam::532141675948:mfa/chocksy 77777
hs-setup

On setup follow the details from here: https://hubstaff.getoutline.com/doc/rails-console-NJkEgZImhc

Next download the Hubstaff Infra VPN client: https://aws.amazon.com/vpn/client-vpn-download/ Follow the details here and download the ovpn file: https://hubstaff.getoutline.com/doc/infra-vpn-RlVENTLmZa

Connect to review app

hs-console server review 11294

Connect to staging

This is the new requirement after updating the infra.

  1. Start the AWS VPN and connect
  2. Type in hs-console server staging
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment