GithubHelp home page GithubHelp logo

90cos-teleport-demo's Introduction

90COS-teleport-demo

About

Repository generates a testing instance of Teleport + associated components for a quick demonstration of reverse tunnel connectivity between a private EC2 instance and the Teleport proxy service. architecture

  • Creates an EKS instance with a Teleport Cluster deployed
  • Creates a testing VPC to mimic the blast chamber with public and private subnets
  • Creates Amazon Linux private EC2 instance in blast chamber VPC serving as the Teleport agent
    • Terraform configures the private instance to connect with Teleport

Instructions

  1. Run EKS cluster

    eksctl create cluster -f ./eksctl/eks_config.yaml
    

    Add aws-auth if desired, changing the role name to match the eksctl generated cluster service role

  2. Run terraform to create Teleport policies and attach to newly created cluster

    From ./terraform/create-teleport-policies

    terraform init
    terraform apply -var="eks_node_group_role=<role name from EKS creation>"
    
  3. Add certificate secret in cluster (certs not included)

    kubectl create ns teleport
    kubectl create secret tls -n teleport tls-secret --key="./certs/privkey.pem" --cert="./certs/fullchain.pem”
    
  4. Run Teleport helm chart to deploy the application in the EKS cluster

    helm upgrade --install teleport teleport/teleport-cluster -f ./teleport/values.yaml --create-namespace -n teleport
    
  5. Get AWS domain from Teleport load balancer and copy to DNS CNAME

  6. In Teleport node shell, create users, roles, token

    From auth cluster shell:

    tctl users add admin --roles=editor,auditor,access --logins=root,ubuntu,ec2-user
    

    From local:

    tsh login --proxy=teleport.<example>.com --user=admin
    tctl status
    

    From ./teleport/resources

    ./create-resources.sh
    
  7. Run terraform to create test VPC and private boxes

    From ./terraform/create-test-resources

    terraform init
    terraform apply
    

    Note - Uses “user data” to install teleport and connect to cluster, see following files to debug user data scripts

    • /var/log/cloud-init.log
    • /var/log/cloud-init-output.log

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.