aws-cdk/ec2 token resolve issues #3104
Labels
@aws-cdk/aws-ec2
Related to Amazon Elastic Compute Cloud
bug
This issue is a bug.
needs-reproduction
This issue needs reproduction.
Note: for support questions, please first reference our documentation, then use Stackoverflow. This repository's issues are intended for feature requests and bug reports.
I'm submitting a ...
What is the current behavior?
If the current behavior is a 🪲bug🪲: Please provide the steps to reproduce
I am using
Fn.findInMap
to resolve availability zones and private subnets to create a vpc. Problem arises from the use of tokens. For some reason, the subnet token is not resolved correctly and is placed into the synthesized template as an array of each character of the token name.Another problem arises from the use of
Token
it seems. I can place the literal array with subnet ids forprivateSubnetIds
but then I get an error thatprivateSubnetIds
(2) must a multiple of availability zones (18). I only have 2 availability zones. I believe.length
is called on the Token string itself which is of form the${Token[Token.89]}
.Should resolve the availability zone and private subnet ids as string arrays.
Using this to deploy multiple environments.
Please tell us about your environment:
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. associated pull-request, stackoverflow, gitter, etc)
Might be related to #168?
#817
The text was updated successfully, but these errors were encountered: