diff --git a/.github/workflows/release-branch.yml b/.github/workflows/release-branch.yml index 3f8fe62..b30901e 100644 --- a/.github/workflows/release-branch.yml +++ b/.github/workflows/release-branch.yml @@ -10,6 +10,7 @@ on: - 'docs/**' - 'examples/**' - 'test/**' + - 'README.*' permissions: contents: write diff --git a/.github/workflows/release-published.yml b/.github/workflows/release-published.yml index f86352b..b31232b 100644 --- a/.github/workflows/release-published.yml +++ b/.github/workflows/release-published.yml @@ -11,4 +11,4 @@ permissions: jobs: terraform-module: - uses: cloudposse/github-actions-workflows-terraform-module/.github/workflows/release.yml@main + uses: cloudposse/github-actions-workflows-terraform-module/.github/workflows/release-published.yml@main diff --git a/README.md b/README.md index e69f771..2d8e21d 100644 --- a/README.md +++ b/README.md @@ -137,7 +137,7 @@ Available targets: | Name | Version | |------|---------| -| [terraform](#requirement\_terraform) | >= 0.13.0 | +| [terraform](#requirement\_terraform) | >= 1.0 | | [aws](#requirement\_aws) | >= 2.0 | | [null](#requirement\_null) | >= 2.0 | diff --git a/docs/terraform.md b/docs/terraform.md index 4a01320..a5193c9 100644 --- a/docs/terraform.md +++ b/docs/terraform.md @@ -3,7 +3,7 @@ | Name | Version | |------|---------| -| [terraform](#requirement\_terraform) | >= 0.13.0 | +| [terraform](#requirement\_terraform) | >= 1.0 | | [aws](#requirement\_aws) | >= 2.0 | | [null](#requirement\_null) | >= 2.0 | diff --git a/examples/complete/versions.tf b/examples/complete/versions.tf new file mode 100644 index 0000000..d8dd1a4 --- /dev/null +++ b/examples/complete/versions.tf @@ -0,0 +1,10 @@ +terraform { + required_version = ">= 1.0" + + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 4.0" + } + } +} diff --git a/main.tf b/main.tf index 64b039b..56c08ff 100644 --- a/main.tf +++ b/main.tf @@ -18,12 +18,12 @@ resource "aws_appautoscaling_target" "read_target_index" { resource "aws_appautoscaling_policy" "read_policy" { count = module.this.enabled ? 1 : 0 - name = "DynamoDBReadCapacityUtilization:${join("", aws_appautoscaling_target.read_target.*.id)}" + name = "DynamoDBReadCapacityUtilization:${join("", aws_appautoscaling_target.read_target[*].id)}" policy_type = "TargetTrackingScaling" - resource_id = join("", aws_appautoscaling_target.read_target.*.resource_id) + resource_id = join("", aws_appautoscaling_target.read_target[*].resource_id) - scalable_dimension = join("", aws_appautoscaling_target.read_target.*.scalable_dimension) - service_namespace = join("", aws_appautoscaling_target.read_target.*.service_namespace) + scalable_dimension = join("", aws_appautoscaling_target.read_target[*].scalable_dimension) + service_namespace = join("", aws_appautoscaling_target.read_target[*].service_namespace) target_tracking_scaling_policy_configuration { predefined_metric_specification { @@ -73,12 +73,12 @@ resource "aws_appautoscaling_target" "write_target_index" { resource "aws_appautoscaling_policy" "write_policy" { count = module.this.enabled ? 1 : 0 - name = "DynamoDBWriteCapacityUtilization:${join("", aws_appautoscaling_target.write_target.*.id)}" + name = "DynamoDBWriteCapacityUtilization:${join("", aws_appautoscaling_target.write_target[*].id)}" policy_type = "TargetTrackingScaling" - resource_id = join("", aws_appautoscaling_target.write_target.*.resource_id) + resource_id = join("", aws_appautoscaling_target.write_target[*].resource_id) - scalable_dimension = join("", aws_appautoscaling_target.write_target.*.scalable_dimension) - service_namespace = join("", aws_appautoscaling_target.write_target.*.service_namespace) + scalable_dimension = join("", aws_appautoscaling_target.write_target[*].scalable_dimension) + service_namespace = join("", aws_appautoscaling_target.write_target[*].service_namespace) target_tracking_scaling_policy_configuration { predefined_metric_specification { diff --git a/outputs.tf b/outputs.tf index 94054ae..77057cc 100644 --- a/outputs.tf +++ b/outputs.tf @@ -1,9 +1,9 @@ output "appautoscaling_read_policy_arn" { - value = join("", aws_appautoscaling_policy.read_policy.*.arn) + value = join("", aws_appautoscaling_policy.read_policy[*].arn) description = "Appautoscaling read policy ARN" } output "appautoscaling_write_policy_arn" { - value = join("", aws_appautoscaling_policy.write_policy.*.arn) + value = join("", aws_appautoscaling_policy.write_policy[*].arn) description = "Appautoscaling write policy ARN" } \ No newline at end of file diff --git a/versions.tf b/versions.tf index 971ae24..b56bd24 100644 --- a/versions.tf +++ b/versions.tf @@ -1,5 +1,5 @@ terraform { - required_version = ">= 0.13.0" + required_version = ">= 1.0" required_providers { aws = {