bug: Parameter type ignored when passed to NestedStacks #10794
Labels
aws:cloudformation
AWS CloudFormation
status: backlog
Triaged but not yet being worked on
type: bug
Bug report
Is there an existing issue for this?
Current Behavior
I have a cloudformation nested stack failing to deploy.
The main template looks like this:
Inside the nested stack template we use a PyPlate macro
The 'Subnets' parameter expected by the template:
The PyPlate code that is failing:
In the logs I can see that Subnets param values are passed as a single string instead of a list, which makes the python loop through the characters:
2914-47da-a810-af814ac562e8] botocore.exceptions.ClientError: An error occurred (InvalidSubnetID.NotFound) when calling the DescribeSubnets operation: The subnet ID 's' does not exist
Full debug log:
Expected Behavior
Parameter type to be preserved when it's being passed to lambda like it is in AWS.
How are you starting LocalStack?
With the
localstack
scriptSteps To Reproduce
How are you starting localstack (e.g.,
bin/localstack
command, arguments, ordocker-compose.yml
)Client commands (e.g., AWS SDK code snippet, or sequence of "awslocal" commands)
awslocal cloudformation create-stack --capabilities CAPABILITY_IAM CAPABILITY_NAMED_IAM CAPABILITY_AUTO_EXPAND --stack-name cloudformation-alb --template-body file://template.yaml && awslocal cloudformation wait stack-create-complete --stack-name cloudformation-alb
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: