|
1 | | -# Terraform Module: AWS Teleport Cluster |
| 1 | +# Terraform Module: Teleport Cluster |
2 | 2 |
|
3 | | -This project is under development. See `dev` branch for latest activity. |
| 3 | +This Terraform module deploys a Teleport cluster in high availability (HA) |
| 4 | +configuration. [Teleport](https://github.com/gravitational/teleport) is a modern |
| 5 | +zero-trust solution by Gravitational. |
4 | 6 |
|
5 | | -## Prerequisites |
| 7 | +### Features |
6 | 8 |
|
7 | | -- Terraform v0.13.0 or newer |
8 | | -- An AWS account |
| 9 | +- **High Availability**: Deploys Teleport in a highly available configuration to |
| 10 | + ensure uninterrupted access. |
| 11 | +- **Managed Upgrades**: Supports controlled upgrades to new versions of |
| 12 | + Teleport. |
| 13 | +- **Secure**: Uses AWS Key Management Service (KMS) to secure sensitive data. |
| 14 | +- **Scalable**: Can handle growth in your user base and infrastructure without a |
| 15 | + corresponding increase in complexity. |
| 16 | +- **Integrated**: Works well with your existing infrastructure by following |
| 17 | + CloudPosse's context and labeling patterns. |
9 | 18 |
|
10 | 19 | ## Usage |
11 | 20 |
|
| 21 | +Deploy it using the block below. For the first time deployments, it make take 10 |
| 22 | +minutes before the web portal is available. |
| 23 | + |
| 24 | +```hcl |
| 25 | +
|
12 | 26 | ```hcl |
13 | 27 | module "teleport_cluster" { |
14 | 28 | source = "cruxstack/teleport-cluster/aws" |
15 | 29 | version = "x.x.x" |
16 | 30 |
|
17 | | - # TBD |
| 31 | + teleport_letsencrypt_email = "[email protected]" |
| 32 | + teleport_runtime_version = "10.3.15" |
| 33 | + dns_parent_zone_id = Z0000000000000000000 |
| 34 | + dns_parent_zone_name = demo.example.com |
| 35 | + vpc_id = "vpc-00000000000000" |
| 36 | + vpc_subnet_ids = ["subnet-00000000000000", "subnet-11111111111111111", "subnet-22222222222222222"] |
| 37 | + vpc_public_subnet_ids = ["subnet-33333333333333", "subnet-44444444444444444", "subnet-55555555555555555"] |
| 38 | + teleport_setup_mode = false |
18 | 39 | } |
19 | 40 | ``` |
20 | 41 |
|
21 | | -## Requirements |
22 | | - |
23 | | -- Terraform 0.13.0 or later |
24 | | -- AWS provider |
25 | | - |
26 | 42 | ## Inputs |
27 | 43 |
|
28 | 44 | In addition to the variables documented below, this module includes several |
29 | 45 | other optional variables (e.g., `name`, `tags`, etc.) provided by the |
30 | 46 | `cloudposse/label/null` module. Please refer to the [`cloudposse/label` documentation](https://registry.terraform.io/modules/cloudposse/label/null/latest) for more details on these variables. |
31 | 47 |
|
32 | | -| Name | Description | Type | Default | Required | |
33 | | -|-------------|-------------|:------:|:-------:|:--------:| |
34 | | -| `placehold` | N/A | string | null | No | |
| 48 | +| Name | Description | Type | Default | Required | |
| 49 | +|------------------------------|-------------------------------------------------------------------------------------------------------------------|----------------|---------|:--------:| |
| 50 | +| `teleport_runtime_version` | The runtime version of Teleport. | `string` | n/a | yes | |
| 51 | +| `teleport_letsencrypt_email` | The email address to use for Let's Encrypt. | `string` | n/a | yes | |
| 52 | +| `teleport_setup_mode` | Toggle Teleport setup mode. | `bool` | `true` | no | |
| 53 | +| `teleport_experimental_mode` | Toggle Teleport experimental mode. | `bool` | `false` | no | |
| 54 | +| `instance_config` | Configuration for the instances. Each type (`auth`, `node`, `proxy`) contains an object with `count` and `sizes`. | `object` | `{}` | no | |
| 55 | +| `artifacts_bucket_name` | The name of the S3 bucket for artifacts. | `string` | `""` | no | |
| 56 | +| `logs_bucket_name` | The name of the S3 bucket for logs. | `string` | `""` | no | |
| 57 | +| `dns_parent_zone_id` | The ID of the parent DNS zone. | `string` | n/a | yes | |
| 58 | +| `dns_parent_zone_name` | The name of the parent DNS zone. | `string` | n/a | yes | |
| 59 | +| `vpc_id` | The ID of the VPC to deploy resources into. | `string` | n/a | yes | |
| 60 | +| `vpc_private_subnet_ids` | The IDs of the private subnets in the VPC to deploy resources into. | `list(string)` | n/a | yes | |
| 61 | +| `vpc_public_subnet_ids` | The IDs of the public subnets in the VPC to deploy resources into. | `list(string)` | n/a | yes | |
| 62 | +| `aws_region_name` | The name of the AWS region. | `string` | `""` | no | |
| 63 | +| `aws_account_id` | The ID of the AWS account. | `string` | `""` | no | |
| 64 | +| `aws_kv_namespace` | The namespace or prefix for AWS SSM parameters and similar resources. | `string` | `""` | no | |
35 | 65 |
|
36 | | -## Outputs |
| 66 | +### Outputs |
37 | 67 |
|
38 | | -| Name | Description | |
39 | | -|-------------|-------------| |
40 | | -| `placehold` | N/A | |
| 68 | +| Name | Description | |
| 69 | +|-------------------------|------------------------------------------------------------------| |
| 70 | +| `teleport_dns_name` | The DNS name of the Teleport service. | |
| 71 | +| `teleport_auth_config` | The configuration details for the Teleport auth service. | |
| 72 | +| `teleport_node_config` | The configuration details for the Teleport node service. | |
| 73 | +| `teleport_proxy_config` | The configuration details for the Teleport proxy service. | |
| 74 | +| `security_group_id` | The ID of the security group created for the Teleport service. | |
| 75 | +| `security_group_name` | The name of the security group created for the Teleport service. | |
41 | 76 |
|
42 | 77 | ## Contributing |
43 | 78 |
|
|
0 commit comments