# Example for discovering AWS resources in a single account

Source Code: [github.com/gravitational/teleport/tree/master/integrations/terraform-modules/teleport/discovery/aws/examples/single-account-legacy](https://github.com/gravitational/teleport/tree/master/integrations/terraform-modules/teleport/discovery/aws/examples/single-account-legacy)

## Teleport AWS Account Discovery Example

Configuration in this directory creates AWS and Teleport resources necessary for Teleport to discover resources in a single AWS account.

In addition, the example uses a custom AWS IAM policy to narrow the scope of permissions for Teleport Discovery Service instances.

## Requirements

| Name      | Version   |
| --------- | --------- |
| terraform | >= 1.0    |
| aws       | >= 5.0    |
| teleport  | >= 18.5.1 |
| tls       | >= 4.0    |

## Providers

| Name | Version |
| ---- | ------- |
| aws  | >= 5.0  |

## Modules

| Name           | Source | Version |
| -------------- | ------ | ------- |
| aws\_discovery | ../..  | n/a     |

## Resources

| Name                                                                                                                                                                           | Type        |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------- |
| [aws\_iam\_policy\_document.teleport\_discovery\_service\_single\_account](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source |

## Inputs

No inputs.

## Outputs

| Name           | Description |
| -------------- | ----------- |
| aws\_discovery | n/a         |
