Provide enterprise create user instructions for terraform example (#5069)

This commit is contained in:
Steven Martin 2020-12-08 22:47:32 -05:00 committed by GitHub
parent 3fa6904377
commit 8957b67856
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,6 @@
# Teleport Terraform AWS AMI Simple Example
This is a simple Terraform example to get you started provisioning an all-in-one Teleport cluster (auth, node, proxy) on a single ec2 instance based on Gravitational's pre-built AMI.
This is a simple Terraform example to get you started provisioning an all-in-one Teleport cluster (auth, node, proxy) on a single ec2 instance based on Teleport's pre-built AMI.
Do not use this in production! This example should be used for demo, proof-of-concept, or learning purposes only.
@ -54,7 +54,11 @@ Update the included Makefile to define your configuration.
1. Run `make apply`.
2. SSH to your new instance. `ssh ec2-user@<cluster_domain>`.
3. Run `tctl users add <username> ec2-user` (this will create a Teleport User and permit login as the local ec2-user)
3. Create a user (this will create a Teleport User and permit login as the local ec2-user).
- OSS:
`tctl users add <username> ec2-user`
- Enterprise (requires a role):
`tctl users add --roles=admin <username> --logins=ec2-user`
4. Click the registration link provided by the output. Set a password and configure your 2fa token.
5. Success! You've configured a fully functional Teleport cluster.
@ -77,7 +81,7 @@ TF_VAR_key_name ?="example"
TF_VAR_license_path ?="/path/to/license"
# AMI name contains the version of Teleport to install, and whether to use OSS or Enterprise version
# These AMIs are published by Gravitational and shared as public whenever a new version of Teleport is released
# These AMIs are published by Teleport and shared as public whenever a new version of Teleport is released
# To list available AMIs:
# OSS: aws ec2 describe-images --owners 126027368216 --filters 'Name=name,Values=gravitational-teleport-ami-oss*'
# Enterprise: aws ec2 describe-images --owners 126027368216 --filters 'Name=name,Values=gravitational-teleport-ami-ent*'