inlets / inletsctl

Create inlets servers on the top cloud platforms
https://docs.inlets.dev/
MIT License
457 stars 63 forks source link

AWS: Update Image to Ubuntu 20_04 #110

Closed cpanato closed 2 years ago

cpanato commented 2 years ago

Description

Update ubuntu image to use 20.04

Main issue: https://github.com/inlets/inletsctl/issues/95

How Has This Been Tested?

$ ./bin/inletsctl-darwin create --provider=ec2 -a honk! --secret-key=honk_secret -r us-east-1 --vpc-id=vpc-0xxxxxa --subnet-id=subnet-0xxxx9

Using provider: ec2
Requesting host: pensive-villani8 in us-east-1, from ec2
Host: i-05ce986e0fd809285, status: creating
....
[97/500] Host: i-05ce986e0fd809285, status: initialising
[98/500] Host: i-05ce986e0fd809285, status: active
inlets PRO TCP (0.8.7) server summary:
  IP: 54.163.14.195
  Auth-token: Q1YdEeQ4mwTfjJneDZNif7zNiM21dddddJ4mVEH0PUnHpDarU5wuJjE3C

Command:

# Obtain a license at https://inlets.dev
# Store it at $HOME/.inlets/LICENSE or use --help for more options
export LICENSE="$HOME/.inlets/LICENSE"

# Give a single value or comma-separated
export PORTS="8000"

# Where to route traffic from the inlets server
export UPSTREAM="localhost"

inlets-pro tcp client --url "wss://54.163.14.195:8123" \
  --token "Q1YdEeQ4mwTfjJneDZNidddddDJ4mVEH0PUnHpDarU5wuJjE3C" \
  --upstream $UPSTREAM \
  --ports $PORTS

To delete:
  inletsctl delete --provider ec2 --id "i-05ce986e0fd809285"

Screenshot 2021-07-27 at 13 39 42

connecting

$ inlets-pro tcp client --url "wss://3.82.226.90:8123" \
  --token "AEzByv91d4YrptV1lhk5xxxxxxqxtTmeaMNMUGsZgO7dhl9hEKa"  \
  --upstream $UPSTREAM \
  --ports $PORTS --license "xxxxxxxx"
2021/07/27 15:28:53 Starting TCP client. Version 0.8.7 - 9a7a04c85f25d2400359536965a971146aae72f0
2021/07/27 15:28:53 Licensed to: Carlos Panato <ctadeu@gmail.com>, expires: 21 day(s)
2021/07/27 15:28:53 Upstream server: localhost, for ports: 8000
inlets-pro client. Copyright OpenFaaS Ltd 2021
INFO[2021/07/27 15:28:53] Connecting to proxy                           url="wss://3.82.226.90:8123/connect"
INFO[2021/07/27 15:28:54] Connection established.. OK.

How are existing users impacted? What migration steps/scripts do we need?

Checklist:

I have:

alexellis commented 2 years ago

We'll need to validate that it works with a client. If your trial has expired, DM me on Slack

cpanato commented 2 years ago

E2E test is working! thanks @alexellis for the temp license

dirien commented 2 years ago

Fixes issue #108