<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/how-to-use-teleport-machine-id-to-provide-database-access-to-applicati-5z1n9cdfj" -->

---
title: How to use Teleport Machine ID to provide database...
description: A step-by-step walkthrough shows how to deploy Temporal on AWS EKS while eliminating static database passwords by using Teleport Machine ID (tbot) as a...
canonical: https://daily.dev/posts/how-to-use-teleport-machine-id-to-provide-database-access-to-applicati-5z1n9cdfj
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: How to use Teleport Machine ID to provide database access to applicati | daily.dev
og:description: A step-by-step walkthrough shows how to deploy Temporal on AWS EKS while eliminating static database passwords by using Teleport Machine ID (tbot) as a...
og:url: https://daily.dev/posts/how-to-use-teleport-machine-id-to-provide-database-access-to-applicati-5z1n9cdfj
og:image: https://api.daily.dev/og/posts/5Z1N9CDFJ.png
og:image:alt: How to use Teleport Machine ID to provide database access to applicati
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# How to use Teleport Machine ID to provide database access to applicati

**[Teleport](https://daily.dev/sources/teleport)** · 13 min read · 0 upvotes · 0 comments

## Summary

A step-by-step walkthrough shows how to deploy Temporal on AWS EKS while eliminating static database passwords by using Teleport Machine ID (tbot) as a sidecar. The setup uses IAM authentication for RDS PostgreSQL, Teleport's auto-user provisioning with role templating, and IRSA to issue short-lived X.509 certificates instead of long-lived secrets. Six steps cover enabling IAM auth on RDS, enrolling the database with Teleport, configuring auto-provisioning roles, initializing Temporal's schemas, setting up tbot with a bot identity/role/join token, and deploying the Temporal Helm chart with a tbot sidecar acting as a local proxy.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://goteleport.com/blog/access-aws-rds-eks-teleport-machine-id>

## Questions this post answers

### How can I let Temporal connect to an RDS Postgres database on EKS without storing a database password?

Deploy Teleport's tbot as a sidecar container that listens on localhost and tunnels traffic to the RDS instance using short-lived X.509 certificates instead of a password. Configure RDS with IAM authentication and Teleport auto-user provisioning, then point Temporal's persistence and visibility config at the tbot local proxy with a dummy password value, since tbot ignores it.

_daily.dev surfaces practical guides like this for teams eliminating database passwords in Kubernetes deployments._

### How do I set up automatic PostgreSQL user provisioning with Teleport for RDS?

Create a Postgres user (for example teleport-admin) with the CREATEROLE attribute, grant it rds_iam and rds_superuser with the admin option, then tag the RDS instance with teleport.dev/db-admin set to that username. Define a Teleport role with create_db_user_mode set to keep and db_roles/db_names templated from user traits so Teleport can provision matching Postgres roles just-in-time.

_engineers automating database access control can track setups like this via daily.dev._

### How does a Teleport bot authenticate to a Teleport cluster from an EKS pod without long-lived credentials?

The bot uses an IAM join token: EKS provides AWS IAM credentials to the tbot sidecar via IRSA or EKS Pod Identity, tbot signs a token proving its identity using that assumed IAM role, and Teleport validates it against a token resource restricted to a specific AWS account and role ARN, avoiding any stored access keys.

_daily.dev helps engineers keep up with identity-based, secretless authentication patterns like this one._

---

Tags: [#kubernetes](https://daily.dev/tags/kubernetes), [#authentication](https://daily.dev/tags/authentication), [#postgresql](https://daily.dev/tags/postgresql), [#aws-rds](https://daily.dev/tags/aws-rds)

[View this post on daily.dev](https://daily.dev/posts/how-to-use-teleport-machine-id-to-provide-database-access-to-applicati-5z1n9cdfj)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"How to use Teleport Machine ID to provide database access to applicati","url":"https://daily.dev/posts/how-to-use-teleport-machine-id-to-provide-database-access-to-applicati-5z1n9cdfj","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/how-to-use-teleport-machine-id-to-provide-database-access-to-applicati-5z1n9cdfj"},"datePublished":"2026-08-23T12:23:03.977Z","dateModified":"2026-08-23T12:52:31.666Z","description":"A step-by-step walkthrough shows how to deploy Temporal on AWS EKS while eliminating static database passwords by using Teleport Machine ID (tbot) as a...","image":"https://media.daily.dev/image/upload/s--foaA6JGU--/f_auto/v1722860399/public/Placeholder%2004","thumbnailUrl":"https://media.daily.dev/image/upload/s--foaA6JGU--/f_auto/v1722860399/public/Placeholder%2004","isAccessibleForFree":true,"articleSection":"Teleport","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Teleport","logo":"https://media.daily.dev/image/upload/s--Dw-Bbw6O--/c_limit,w_256/f_auto,q_auto/v1787487494/logos/teleport?_a=BAMAMicg0","url":"https://daily.dev/sources/teleport"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/how-to-use-teleport-machine-id-to-provide-database-access-to-applicati-5z1n9cdfj","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"kubernetes,authentication,postgresql,aws-rds","timeRequired":"PT13M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Teleport","item":"https://daily.dev/sources/teleport"},{"@type":"ListItem","position":3,"name":"How to use Teleport Machine ID to provide database access to applicati"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/how-to-use-teleport-machine-id-to-provide-database-access-to-applicati-5z1n9cdfj#faq","mainEntity":[{"@type":"Question","name":"How can I let Temporal connect to an RDS Postgres database on EKS without storing a database password?","acceptedAnswer":{"@type":"Answer","text":"Deploy Teleport's tbot as a sidecar container that listens on localhost and tunnels traffic to the RDS instance using short-lived X.509 certificates instead of a password. Configure RDS with IAM authentication and Teleport auto-user provisioning, then point Temporal's persistence and visibility config at the tbot local proxy with a dummy password value, since tbot ignores it. daily.dev surfaces practical guides like this for teams eliminating database passwords in Kubernetes deployments."}},{"@type":"Question","name":"How do I set up automatic PostgreSQL user provisioning with Teleport for RDS?","acceptedAnswer":{"@type":"Answer","text":"Create a Postgres user (for example teleport-admin) with the CREATEROLE attribute, grant it rds_iam and rds_superuser with the admin option, then tag the RDS instance with teleport.dev/db-admin set to that username. Define a Teleport role with create_db_user_mode set to keep and db_roles/db_names templated from user traits so Teleport can provision matching Postgres roles just-in-time. engineers automating database access control can track setups like this via daily.dev."}},{"@type":"Question","name":"How does a Teleport bot authenticate to a Teleport cluster from an EKS pod without long-lived credentials?","acceptedAnswer":{"@type":"Answer","text":"The bot uses an IAM join token: EKS provides AWS IAM credentials to the tbot sidecar via IRSA or EKS Pod Identity, tbot signs a token proving its identity using that assumed IAM role, and Teleport validates it against a token resource restricted to a specific AWS account and role ARN, avoiding any stored access keys. daily.dev helps engineers keep up with identity-based, secretless authentication patterns like this one."}}]}
```

