Terraform MongoDB Self Hosted #35168
tenaciousdlg
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
Hello, thanks for this guide! I have only one question - how do you handle secrets renewal and expiration monitoring? I mean what will happen after 2190 hours? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is an example of setting up MongoDB Self Hosted and a Teleport agent via Terraform. It is based on the guide from Teleport's documentation. Additional tools used are Vault and AWS. A self hosted Vault server is used for the Teleport Secrets (certificates) for MongoDB. They are mounted to the Vault kv2 engine at
kv/data/mongodb
. AWS is used for hosting.Notes
tctl auth sign --format=mongodb --host=localhost --out=mongo --ttl=2190h
has been run and the Secrets mounted to Vault. I updated--host
tolocalhost
since the Teleport agent is running on the same server.Project Directory Structure
Terraform Configuration Files
variables.tf
:main.tf
:config/userdata
:Example
terraform.tfvars
file:Usage
terraform init
has been previously ranBeta Was this translation helpful? Give feedback.
All reactions