Skip to content

Commit

Permalink
Release: 1.12.1
Browse files Browse the repository at this point in the history
  • Loading branch information
AWS committed Apr 16, 2024
1 parent ac0facd commit 8ab218f
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 4 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ As of version 1.6.0, AFT collects anonymous operational metrics to help AWS impr

| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0.0, < 2.0.0 |
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.2.0, < 2.0.0 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.11.0, < 6.0.0 |

## Providers
Expand Down Expand Up @@ -93,6 +93,8 @@ As of version 1.6.0, AFT collects anonymous operational metrics to help AWS impr
| Name | Type |
|------|------|
| [aws_partition.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/partition) | data source |
| [aws_service.home_region_validation](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/service) | data source |
| [aws_ssm_parameters_by_path.servicecatalog_regional_data](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/ssm_parameters_by_path) | data source |
| [local_file.python_version](https://registry.terraform.io/providers/hashicorp/local/latest/docs/data-sources/file) | data source |
| [local_file.version](https://registry.terraform.io/providers/hashicorp/local/latest/docs/data-sources/file) | data source |

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.12.0
1.12.1
18 changes: 17 additions & 1 deletion data.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,20 @@ data "local_file" "python_version" {
filename = "${path.module}/PYTHON_VERSION"
}

data "aws_partition" "current" {}
data "aws_ssm_parameters_by_path" "servicecatalog_regional_data" {
count = data.aws_partition.current.partition == "aws" ? 1 : 0
path = "/aws/service/global-infrastructure/services/servicecatalog/regions"
}

data "aws_service" "home_region_validation" {
service_id = "controltower"
lifecycle {
precondition {
condition = try(contains(data.aws_ssm_parameters_by_path.servicecatalog_regional_data[0].values, var.ct_home_region), true) == true
error_message = "AFT is not supported on Control Tower home region ${var.ct_home_region}. Refer to https://docs.aws.amazon.com/controltower/latest/userguide/limits.html for more information."
}
}
}

data "aws_partition" "current" {
}
2 changes: 1 addition & 1 deletion versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# SPDX-License-Identifier: Apache-2.0
#
terraform {
required_version = ">= 1.0.0, < 2.0.0"
required_version = ">= 1.2.0, < 2.0.0"

required_providers {
aws = {
Expand Down

0 comments on commit 8ab218f

Please sign in to comment.