https://github.com/dtherhtun/terraform-aws-az-sort
Sorting AWS Availability Zone from Data Soruce
https://github.com/dtherhtun/terraform-aws-az-sort
aws sorting subnets terraform terraform-module
Last synced: 7 days ago
JSON representation
Sorting AWS Availability Zone from Data Soruce
- Host: GitHub
- URL: https://github.com/dtherhtun/terraform-aws-az-sort
- Owner: dtherhtun
- License: apache-2.0
- Created: 2022-10-20T11:15:53.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-25T10:06:16.000Z (about 3 years ago)
- Last Synced: 2025-02-23T13:15:50.455Z (over 1 year ago)
- Topics: aws, sorting, subnets, terraform, terraform-module
- Language: HCL
- Homepage: https://registry.terraform.io/modules/dtherhtun/az-sort/aws/latest
- Size: 215 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Sorting AWS Subnet IDs from Data Source
Terraform module which sort subnet ids in alphabetize az
## Examples
- [single data source sorting](https://github.com/dtherhtun/terraform-aws-az-sort/blob/e7767ba850ef56637a9d1237fc3a12d04eeaeab2/example/main.tf#L44)
- [multiple data source sorting](https://github.com/dtherhtun/terraform-aws-az-sort/blob/e7767ba850ef56637a9d1237fc3a12d04eeaeab2/example/main.tf#L50)

## Requirements
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 1.0.0 |
## Providers
No providers.
## Modules
No modules.
## Resources
No resources.
## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [region](#input\_region) | AWS region | `string` | n/a | yes |
| [subnet\_data](#input\_subnet\_data) | data from subnet data source | `map(any)` | n/a | yes |
## Outputs
| Name | Description |
|------|-------------|
| [sorted](#output\_sorted) | sorted value of subnet ids |
## License
Apache 2 Licensed. See [LICENSE](https://github.com/dtherhtun/terraform-aws-az-sort/tree/master/LICENSE) for full details.