You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 17, 2024. It is now read-only.
My problem is that cloudformation.Select is typed to accept an array of strings as the second argument, when in fact the cloudformation.GetAzs already returns an array.
My initial thoughts is that there might be the need for cloudformation.Select to accept an interface. If it receives an array of strings, it uses these as the array of possible choices. If it receives a single string, it assumes that this is a CloudFormation function?
I haven't fully thought this through, but at the moment I am a bit stuck and need to hard code availability zones.
Thanks for your time, please let me know if I can elaborate or help in any way.
The text was updated successfully, but these errors were encountered:
Hi team,
First of all, thank you for a great package. I'm a big fan.
I've come across a bit of weird behaviour in terms of the typing of
cfn.Select
, and when you try and pass other functions that return an array to it.My use case is creating a subnet based on the availability zones available to me, as per the documentation here.
Within those docs, you will see mention of the YAML snippet below:
My problem is that
cloudformation.Select
is typed to accept an array of strings as the second argument, when in fact thecloudformation.GetAzs
already returns an array.I've tried:
and it does not work. It results in this template:
My initial thoughts is that there might be the need for
cloudformation.Select
to accept an interface. If it receives an array of strings, it uses these as the array of possible choices. If it receives a single string, it assumes that this is a CloudFormation function?I haven't fully thought this through, but at the moment I am a bit stuck and need to hard code availability zones.
Thanks for your time, please let me know if I can elaborate or help in any way.
The text was updated successfully, but these errors were encountered: