From 26667e52d0e2f46e3213239933a1c8fcf1a83166 Mon Sep 17 00:00:00 2001 From: AWS Date: Wed, 22 Nov 2023 01:09:38 +0000 Subject: [PATCH] Release: 1.11.1 --- VERSION | 2 +- modules/aft-customizations/states.tf | 17 ++++++++--------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/VERSION b/VERSION index 1cac385c..720c7384 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.11.0 +1.11.1 diff --git a/modules/aft-customizations/states.tf b/modules/aft-customizations/states.tf index 226b08f2..c3d7feda 100644 --- a/modules/aft-customizations/states.tf +++ b/modules/aft-customizations/states.tf @@ -15,14 +15,13 @@ locals { } } -data "template_file" "invoke_customizations_sfn_template" { - // Use valid JSON but transform it during load to support numeric replacement - template = replace(file("${local.state_machine_source}"), "\"$${maximum_concurrent_customizations}\"", "$${maximum_concurrent_customizations}") - vars = local.replacements_map -} - resource "aws_sfn_state_machine" "aft_invoke_customizations_sfn" { - name = "aft-invoke-customizations" - role_arn = aws_iam_role.aft_invoke_customizations_sfn.arn - definition = data.template_file.invoke_customizations_sfn_template.rendered + name = "aft-invoke-customizations" + role_arn = aws_iam_role.aft_invoke_customizations_sfn.arn + // Use valid JSON but transform (de-quote) during load to support numeric parameterization + definition = replace( + templatefile("${local.state_machine_source}", local.replacements_map), + "/\"MaxConcurrency\": \"(\\d+)\"/", + "\"MaxConcurrency\": $1" + ) }