---
title: "Secure developer infrastructure with Teleport and Coder - Blog - Coder"
description: "Coder works with Teleport! See how these tools work together to empower developer teams."
image: "/api/dynamic-og?title=Secure+developer+infrastructure+with+Teleport+and+Coder&randomBackground=true&styles=%7B%22height%22%3A162%2C%22width%22%3A302%2C%22padding%22%3A16%2C%22titleSize%22%3A24%2C%22logo%22%3A%7B%22width%22%3A80%2C%22height%22%3A12.15%7D%7D"
canonical: "https://coder.com/blog/connect-to-cloud-infrastructure-securely-with-teleport-and-coder"
---

Feb 4 20222 min read

# Secure developer infrastructure with Teleport and Coder

[Ben Potter](https://coder.com/blog/author/bpmct)

Share this article

Organizations adopting DevOps continue to benefit from giving developers on-demand access to resources instead of relying on manual systems and ticket queues. In this post, we’ll discuss how Coder and Teleport work together to empower software teams.

## First, let’s define these tools:

[Coder](https://coder.com) allows developers to provision remote workspaces on their organization’s infrastructure. Remote workspaces speed up onboarding time, builds, tests, while still giving developers the flexibility they’re used to with local machines.

[Teleport](https://github.com/gravitational/teleport) gives developers access to cloud infrastructure including Kubernetes clusters, databases, SSH servers, windows servers, and web applications in an easy and secure fashion.

## How it works: automating development workflows

1) Engineers can spin up Coder workspaces with all the tools they need, defined by a container [image](https://coder.com/docs/coder/latest/images) (this can include the `teleport` CLI).

![Launching a Coder workspace template from a git repository](https://www.datocms-assets.com/19109/1644003503-ezgif-com-gif-maker-6.gif)
Launching a Coder workspace template from a git repository

2) With the Teleport CLI (`tsh`), it’s simple to connect a Coder workspace to other infrastructure in your clouds, such as a remote Kubernetes cluster, database, SSH servers, or a specific application. Certificates can be short-lived (for debugging) or long-lived (leverage an internal API).

![Using Teleport inside a Coder workspace to access additional infrastructure](https://www.datocms-assets.com/19109/1644003595-ezgif-com-gif-maker-8.gif)
Using Teleport inside a Coder workspace to access additional infrastructure

## Try it yourself

**Prerequisites:**

- Teleport deployment. Follow the [installation docs](https://goteleport.com/docs/installation/)
- Coder deployment. Follow the [installation docs](https://coder.com/docs/coder/latest/setup)
- Machine with Docker (or podman) for building images

To use Teleport inside a Coder workspace, you need to create a [custom image](https://coder.com/docs/coder/latest/images). You can also set [environment variables](https://goteleport.com/docs/setup/reference/cli/#tsh-mfa-rm) to pre-configure Teleport.

**Step 1)** Let’s create the Dockerfile:

```

```

**Step 2)** Build and push the image

```

```

**Step 3)** Create a new [Coder workspace](https://coder.com/docs/coder/latest/workspaces/create) with your image. You can connect to the workspace from a web-based or desktop IDE.

![Teleport and Coder](https://www.datocms-assets.com/19109/1643999340-image3.png?fit=clip&fm=webp&w=3840&q=90)

Teleport and Coder

### Subscribe to our newsletter

Want to stay up to date on all things Coder? Subscribe to our monthly newsletter for the latest articles, workshops, events, and announcements.
