Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested function calls #226

Open
volisoft opened this issue Dec 13, 2017 · 0 comments
Open

Nested function calls #226

volisoft opened this issue Dec 13, 2017 · 0 comments

Comments

@volisoft
Copy link

How can I make nested function calls like below:

`Fn::Select`[Token[String]](StringBackedInt(0), `Fn::GetAZs`(`AWS::Region`))

Compilation error:
"Error:(106, 77) type mismatch;
found : com.monsanto.arch.cloudformation.model.Fn::GetAZs
required: com.monsanto.arch.cloudformation.model.Token[Seq[com.monsanto.arch.cloudformation.model.Token[String]]]
val value = Fn::Select[Token[String]](StringBackedInt(0), Fn::GetAZs(AWS::Region))"

OR

`Fn::FindInMap`[AMIId](MappingRef(awsRegionArch2AMI), `AWS::Region`, `Fn::FindInMap`[Token[String]](MappingRef(awsInstanceType2Arch), ParameterRef(instanceTypeParam), "Arch"))

Error:(87, 120) type mismatch;
found : com.monsanto.arch.cloudformation.model.Fn::FindInMap[com.monsanto.arch.cloudformation.model.Token[String]]
required: com.monsanto.arch.cloudformation.model.Token[String]
ImageId = Fn::FindInMap[AMIId](MappingRef(awsRegionArch2AMI), AWS::Region, Fn::FindInMap[Token[String]](MappingRef(awsInstanceType2Arch), ParameterRef(instanceTypeParam), "Arch"))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant