-
Notifications
You must be signed in to change notification settings - Fork 4k
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
cdk.FnJoin synth bug #512
Comments
new cdk.FnJoin("", "https://","dummy.ref",".execute-api.",this.env.region,".amazonaws.com/","stage_name") Alternatively, you can use the sugar new cdk.FnConcat("https://","dummy.ref",".execute-api.",this.env.region,".amazonaws.com/","stage_name") |
Thank you this solved the problem |
I wonder if we should change FnJoin to correspond 1:1 with CloudFormation. I am assuming you will not be the only person making that assumption... |
I think the But I'm thinking there may be value in providing a more fluent API instead... Something similar to what |
Additionally, I guess the current typing of the arguments of A type union would make things nicer here, but JSII won't support that (not transposable to most statically typed languages, such as Java, C#, ...). |
A common developer error is to pass an array as the second argument of `new FnJoin`, but that argument is variadic. This causes invalid CloudFormation templates to be generated. This change detects this usage pattern (vararg contains a single element that is an array) and fixes it up transparently. Related to #512
I'm introducing an output for CloudFormation stack as follow:
What I expect from the command
is that a code like the following is created inside the CloudFormation template:
Instead the generated code is like:
Which result in an error during the deployment:
Do anyone know how to solve this problem, or if it is a a bug or I am doing something wrong?
Thank you fro the support.
The text was updated successfully, but these errors were encountered: