{"token_count": 5014}

# Reference for the teleport-agent-aws Terraform module

This page lists the input fields and output values of the teleport-agent-aws Terraform module.

## Teleport Agent Services Deployment on AWS ECS

This module deploys a Teleport Database Service to AWS as an ECS task. It can generate the configuration, IAM permissions, and Teleport IAM join token for the Database Service. It is not intended to deploy a Teleport cluster or its Auth Service and Proxy Service control plane. This module does not provision the persistent backend and audit event storage, load balancing, DNS, or TLS certificates required to operate a self-hosted Teleport cluster.

Set `var.region` on each module instance to deploy Database Services across multiple Regions using a single AWS provider configuration.

By default, the module creates an outbound security group for the Database Service and a database-access security group that allows traffic from the outbound group. The database-access group is returned as `database_security_group_id` so it can be attached to databases. As an alternative, set `database_service.database_security_group_ids` to have the module add ingress rules to existing database security groups, sourced from the outbound Database Service security group.

For an existing VPC, the module discovers its subnets and classifies them by their effective route tables' IPv4 default routes. It deploys to up to 16 private subnets whose default routes target AWS NAT gateways when available; otherwise, it deploys to up to 16 public subnets whose default routes target an AWS internet gateway and assigns public IP addresses to the ECS tasks. The deployment fails when neither class provides internet access.

When creating a VPC in the same Terraform apply, pass its `private_subnet_ids` or `public_subnet_ids` outputs to bypass subnet discovery. Private subnets are always preferred when both are provided.

## Prerequisites

- An existing Teleport cluster with Auth Service and Proxy Service
- A reachable Teleport Proxy Service endpoint

* A supported join method and credentials that the agent can use to join the cluster. Database Service deployments create an IAM join token by default. See the [Join Methods and Token Reference](https://goteleport.com/docs/reference/deployment/join-methods/) for other supported join methods and creating tokens.

- [Configure Teleport Terraform Provider](https://goteleport.com/docs/configuration/terraform-provider/)
- [Configure AWS Terraform provider](https://registry.terraform.io/providers/hashicorp/aws/latest/docs)

## Examples

Refer to the [examples](https://goteleport.com/docs/reference/infrastructure-as-code/terraform-modules/teleport-agent-aws/examples.md) for example usage of this module.

## How to get help

If you're having trouble, check out our [GitHub Discussions](https://github.com/gravitational/teleport/discussions).

For bugs related to this code, please [open an issue](https://github.com/gravitational/teleport/issues/new/choose).

## Requirements

| Name      | Version   |
| --------- | --------- |
| terraform | >= 1.5.7  |
| aws       | >= 6.0    |
| http      | >= 3.0    |
| random    | >= 3.0    |
| teleport  | >= 18.8.0 |

## Providers

| Name     | Version   |
| -------- | --------- |
| aws      | >= 6.0    |
| http     | >= 3.0    |
| random   | >= 3.0    |
| teleport | >= 18.8.0 |

## Modules

No modules.

## Resources

| Name                                                                                                                                                                                              | Type        |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
| [aws\_cloudwatch\_log\_group.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_log_group)                                                              | resource    |
| [aws\_ecs\_cluster.teleport\_agent](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecs_cluster)                                                                      | resource    |
| [aws\_ecs\_service.teleport\_agent](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecs_service)                                                                      | resource    |
| [aws\_ecs\_task\_definition.teleport\_agent](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecs_task_definition)                                                     | resource    |
| [aws\_iam\_role.ecs\_execution](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role)                                                                             | resource    |
| [aws\_iam\_role.ecs\_task](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role)                                                                                  | resource    |
| [aws\_iam\_role\_policy.ecs\_execution](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy)                                                              | resource    |
| [aws\_iam\_role\_policy.ecs\_task](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy)                                                                   | resource    |
| [aws\_security\_group.teleport\_agent](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/security_group)                                                                | resource    |
| [aws\_security\_group.teleport\_database\_access](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/security_group)                                                     | resource    |
| [aws\_vpc\_security\_group\_egress\_rule.allow\_all\_outbound\_from\_teleport\_agent](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/vpc_security_group_egress_rule) | resource    |
| [aws\_vpc\_security\_group\_ingress\_rule.allow\_all\_from\_teleport\_agent](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/vpc_security_group_ingress_rule)         | resource    |
| [random\_string.name\_suffix](https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/string)                                                                              | resource    |
| teleport\_provision\_token.agent\_aws\_iam                                                                                                                                                        | resource    |
| [aws\_caller\_identity.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/caller_identity)                                                                      | data source |
| [aws\_iam\_policy\_document.database\_task\_inline\_policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document)                                   | data source |
| [aws\_iam\_policy\_document.ecs\_execution](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document)                                                   | data source |
| [aws\_iam\_policy\_document.ecs\_execution\_trust](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document)                                            | data source |
| [aws\_iam\_policy\_document.ecs\_task\_inline\_policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document)                                        | data source |
| [aws\_iam\_policy\_document.ecs\_task\_trust](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document)                                                 | data source |
| [aws\_partition.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/partition)                                                                                   | data source |
| [aws\_region.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/region)                                                                                         | data source |
| [aws\_route\_table.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/route_table)                                                                              | data source |
| [aws\_route\_tables.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/route_tables)                                                                            | data source |
| [aws\_subnets.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/subnets)                                                                                       | data source |
| [aws\_vpc.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/vpc)                                                                                               | data source |
| [http\_http.managed\_updates](https://registry.terraform.io/providers/hashicorp/http/latest/docs/data-sources/http)                                                                               | data source |

## Inputs

| Name                                                 | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | Type                                                                                                                                                                                                                                                                                                                                                                                                 | Default                                                  | Required |
| ---------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------- | -------- |
| apply\_aws\_tags                                     | Additional AWS tags to apply to all created AWS resources.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | `map(string)`                                                                                                                                                                                                                                                                                                                                                                                        | `{}`                                                     | no       |
| create                                               | Toggle creation of all resources.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | `bool`                                                                                                                                                                                                                                                                                                                                                                                               | `true`                                                   | no       |
| create\_security\_group                              | Whether to create the Teleport instance outbound security group and the shared database-access security group.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | `bool`                                                                                                                                                                                                                                                                                                                                                                                               | `true`                                                   | no       |
| database\_service                                    | Teleport Database Service configuration. Set enabled to true to run the Teleport Database Service. Set allow\_database\_modification to true to add RDS permissions that allow the service to modify database configuration. Set default\_iam\_policy\_database\_types to the database types for which default IAM policy statements should be added to the ECS task role's inline policy. Supported default IAM policy database types are `rds` and `rdsproxy`. Statements in the default IAM policy can be overridden by a statement with a matching SID in var.ecs\_task\_role\_inline\_policy. When resources is null, a default resource matcher is used that matches databases in the same account, region, and VPC. Set database\_security\_group\_ids to database security groups that should allow traffic from the Teleport Database Service. Setting database\_security\_group\_ids requires create\_security\_group to be true. When ecs\_task\_role\_self\_assumption\_allowed is true, each matcher's aws.assume\_role\_arn defaults to the ECS task role ARN, including custom matchers. Set aws.assume\_role\_arn to another role ARN to override this default, or to an empty string to disable role assumption for that matcher. | `object({ allow_database_modification = optional(bool, false) database_security_group_ids = optional(list(string), []) default_iam_policy_database_types = optional(list(string), []) enabled = optional(bool, false) resources = optional(list(object({ labels = map(list(string)) aws = optional(object({ assume_role_arn = optional(string) external_id = optional(string, "") })) })), null) })` | `{}`                                                     | no       |
| ecs\_cluster\_name                                   | Name of the ECS cluster.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | `string`                                                                                                                                                                                                                                                                                                                                                                                             | `"teleport"`                                             | no       |
| ecs\_cluster\_use\_name\_prefix                      | Determines whether `var.ecs_cluster_name` is used as a prefix of the ECS cluster name.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | `bool`                                                                                                                                                                                                                                                                                                                                                                                               | `true`                                                   | no       |
| ecs\_execution\_role\_inline\_policy                 | Optional JSON policy document to merge into the inline policy attached to the ECS execution IAM role.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | `string`                                                                                                                                                                                                                                                                                                                                                                                             | `null`                                                   | no       |
| ecs\_service\_name                                   | Name of the ECS service.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | `string`                                                                                                                                                                                                                                                                                                                                                                                             | `"teleport"`                                             | no       |
| ecs\_task\_cloudwatch\_log\_group\_kms\_key\_id      | KMS key ID or ARN used to encrypt the ECS task CloudWatch log group. When null, CloudWatch Logs uses its default encryption key.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | `string`                                                                                                                                                                                                                                                                                                                                                                                             | `null`                                                   | no       |
| ecs\_task\_cloudwatch\_log\_group\_name              | Name for the ECS task CloudWatch log group.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | `string`                                                                                                                                                                                                                                                                                                                                                                                             | `"ecs-teleport"`                                         | no       |
| ecs\_task\_cloudwatch\_log\_group\_region            | AWS Region for the ECS task CloudWatch log group. Defaults to var.region, then the AWS provider's configured Region.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | `string`                                                                                                                                                                                                                                                                                                                                                                                             | `null`                                                   | no       |
| ecs\_task\_cloudwatch\_log\_group\_retention\_days   | Number of days to retain logs in the ECS task CloudWatch log group.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | `number`                                                                                                                                                                                                                                                                                                                                                                                             | `30`                                                     | no       |
| ecs\_task\_cloudwatch\_log\_group\_skip\_destroy     | Whether to preserve the ECS task CloudWatch log group when destroying module resources. Set to true if you do not wish the log group (and any logs it may contain) to be deleted at destroy time, and instead just remove the log group from the Terraform state.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | `bool`                                                                                                                                                                                                                                                                                                                                                                                               | `false`                                                  | no       |
| ecs\_task\_cloudwatch\_log\_group\_use\_name\_prefix | Determines whether `var.ecs_task_cloudwatch_log_group_name` is used as a prefix of the ECS task CloudWatch log group name.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | `bool`                                                                                                                                                                                                                                                                                                                                                                                               | `true`                                                   | no       |
| ecs\_task\_cpu                                       | Number of cpu units used by the ECS task.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | `number`                                                                                                                                                                                                                                                                                                                                                                                             | `2048`                                                   | no       |
| ecs\_task\_definition\_name                          | Name of the ECS task.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | `string`                                                                                                                                                                                                                                                                                                                                                                                             | `"teleport"`                                             | no       |
| ecs\_task\_definition\_use\_name\_prefix             | Determines whether `var.ecs_task_definition_name` is used as a prefix of the ECS task definition name.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | `bool`                                                                                                                                                                                                                                                                                                                                                                                               | `true`                                                   | no       |
| ecs\_task\_desired\_count                            | Desired number of Teleport ECS tasks to run.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | `number`                                                                                                                                                                                                                                                                                                                                                                                             | `2`                                                      | no       |
| ecs\_task\_force\_new\_deployment                    | Set to true to force the ECS service to redeploy tasks without configuration changes.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | `bool`                                                                                                                                                                                                                                                                                                                                                                                               | `false`                                                  | no       |
| ecs\_task\_memory                                    | Amount (in MiB) of memory used by the ECS task.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | `number`                                                                                                                                                                                                                                                                                                                                                                                             | `4096`                                                   | no       |
| ecs\_task\_role\_inline\_policy                      | Optional JSON policy document to merge into the inline policy attached to the ECS task IAM role.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | `string`                                                                                                                                                                                                                                                                                                                                                                                             | `null`                                                   | no       |
| ecs\_task\_role\_self\_assumption\_allowed           | Whether the ECS task IAM role can assume itself.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | `bool`                                                                                                                                                                                                                                                                                                                                                                                               | `true`                                                   | no       |
| environment\_vars                                    | Environment variables to set on the Teleport ECS container.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | `map(string)`                                                                                                                                                                                                                                                                                                                                                                                        | `{}`                                                     | no       |
| join\_params                                         | Override the Teleport join parameters. When null and var.database\_service.enabled is true, the module creates an IAM join token automatically. Set this to use a pre-existing token or a different join method.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | `object({ token_name = string method = string })`                                                                                                                                                                                                                                                                                                                                                    | `null`                                                   | no       |
| log\_level                                           | Teleport log level. Only used when var.database\_service.enabled is true.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | `string`                                                                                                                                                                                                                                                                                                                                                                                             | `"INFO"`                                                 | no       |
| managed\_updates\_enabled                            | Whether to resolve the Teleport version from the configured Managed Updates endpoint when applying this module.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | `bool`                                                                                                                                                                                                                                                                                                                                                                                               | `true`                                                   | no       |
| managed\_updates\_group                              | Update group to query through the v2 Managed Updates endpoint.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | `string`                                                                                                                                                                                                                                                                                                                                                                                             | `"default"`                                              | no       |
| private\_subnet\_ids                                 | Private subnet IDs where Teleport can be deployed. Private subnets must have a default route through an AWS NAT gateway. Set this or public\_subnet\_ids to bypass automatic subnet discovery, such as when the VPC is created in the same Terraform apply. When both variables are null, the module discovers and classifies all subnets in vpc\_id from their effective route tables.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | `list(string)`                                                                                                                                                                                                                                                                                                                                                                                       | `null`                                                   | no       |
| public\_subnet\_ids                                  | Public subnet IDs where Teleport can be deployed. Public subnets must have a default route through an AWS internet gateway. Set this or private\_subnet\_ids to bypass automatic subnet discovery, such as when the VPC is created in the same Terraform apply. When both variables are null, the module discovers and classifies all subnets in vpc\_id from their effective route tables.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | `list(string)`                                                                                                                                                                                                                                                                                                                                                                                       | `null`                                                   | no       |
| region                                               | AWS Region where regional resources are created. When null, the AWS provider's configured Region is used.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | `string`                                                                                                                                                                                                                                                                                                                                                                                             | `null`                                                   | no       |
| security\_group\_ids                                 | Additional security group IDs to attach to the Teleport ECS tasks. These groups are not modified by the module.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | `list(string)`                                                                                                                                                                                                                                                                                                                                                                                       | `[]`                                                     | no       |
| teleport\_container\_image                           | Container image used for Teleport ECS tasks.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | `string`                                                                                                                                                                                                                                                                                                                                                                                             | `"public.ecr.aws/gravitational/teleport-ent-distroless"` | no       |
| teleport\_provision\_token\_name                     | Name for the Teleport provision token resource.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | `string`                                                                                                                                                                                                                                                                                                                                                                                             | `"iam-agent"`                                            | no       |
| teleport\_provision\_token\_use\_name\_prefix        | Determines whether the name of the Teleport provision token is used as a prefix.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | `bool`                                                                                                                                                                                                                                                                                                                                                                                               | `true`                                                   | no       |
| teleport\_proxy\_public\_addr                        | Teleport cluster proxy public address `host:port`. Required when var.database\_service.enabled is true.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | `string`                                                                                                                                                                                                                                                                                                                                                                                             | `null`                                                   | no       |
| teleport\_version\_override                          | teleport\_version\_override is intended for development and MUST NOT be used to control the Teleport version in a typical deployment. This module is designed to run a specific Teleport version. You will face compatibility issues trying to run a different Teleport version with it. If you want to run Teleport version `X.Y.Z`, you should adjust the module version to `X.Y.Z` instead.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | `string`                                                                                                                                                                                                                                                                                                                                                                                             | `null`                                                   | no       |
| vpc\_id                                              | VPC ID where Teleport will be deployed.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | `string`                                                                                                                                                                                                                                                                                                                                                                                             | n/a                                                      | yes      |

## Outputs

| Name                                        | Description                                                                                                                                               |
| ------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| assign\_public\_ip                          | Whether the Teleport ECS tasks are assigned public IP addresses.                                                                                          |
| database\_security\_group\_id               | Shared security group ID to attach to databases to allow ingress from the Teleport Database Service. Null when create\_security\_group is false.          |
| ecs\_cluster\_arn                           | ARN of the ECS cluster for the Teleport ECS service.                                                                                                      |
| ecs\_cluster\_name                          | Name of the ECS cluster for the Teleport ECS service.                                                                                                     |
| ecs\_execution\_role\_arn                   | The ARN of the execution IAM role for the Teleport ECS task.                                                                                              |
| ecs\_execution\_role\_name                  | The name of the execution IAM role for the Teleport ECS task.                                                                                             |
| ecs\_service\_arn                           | ARN of the Teleport ECS service.                                                                                                                          |
| ecs\_service\_name                          | Name of the Teleport ECS service.                                                                                                                         |
| ecs\_service\_subnet\_ids                   | Subnet IDs selected for the Teleport ECS service, up to the AWS limit of 16. Private subnets are preferred over public subnets.                           |
| ecs\_task\_cloudwatch\_log\_group\_arn      | ARN of the CloudWatch log group for the Teleport ECS task.                                                                                                |
| ecs\_task\_cloudwatch\_log\_group\_name     | Name of the CloudWatch log group for the Teleport ECS task.                                                                                               |
| ecs\_task\_definition\_arn                  | ARN of the Teleport ECS task definition.                                                                                                                  |
| ecs\_task\_role\_arn                        | The ARN of the task IAM role for the Teleport ECS task.                                                                                                   |
| ecs\_task\_role\_name                       | The name of the task IAM role for the Teleport ECS task.                                                                                                  |
| intra\_subnet\_ids                          | Subnet IDs discovered without a default route through an AWS NAT gateway or internet gateway. Empty when subnet classification is provided by the caller. |
| private\_subnet\_ids                        | Private subnet IDs provided by the caller or discovered from default routes through AWS NAT gateways.                                                     |
| public\_subnet\_ids                         | Public subnet IDs provided by the caller or discovered from default routes through AWS internet gateways.                                                 |
| security\_group\_id                         | Security group ID created for the Teleport ECS service. Null when create\_security\_group is false.                                                       |
| teleport\_provision\_token\_allow\_aws\_arn | A value that can be used with a Teleport IAM join token to allow the ECS cluster to join the Teleport cluster using its IAM credentials.                  |
| teleport\_provision\_token\_name            | Name of the Teleport provision token that allows the Teleport instance to join the cluster using AWS IAM credentials.                                     |

## Source Code

[View the teleport-agent-aws module source code on GitHub](https://github.com/gravitational/teleport/tree/master/integrations/terraform-modules/teleport/agent/aws).
