aws-cloudformation / aws-cloudformation-macros

This repository hosts examples of AWS CloudFormation macros.
Apache License 2.0
83 stars 49 forks source link

Parameterize CloudFormation Count Macro #14

Closed bhabanisankar closed 2 years ago

bhabanisankar commented 3 years ago

Hi Team, We are trying to parameterize the Count value(eg. 2, 3 or any value) by passing the parameter from JSON file to the Cloud formation template. But we are getting error as "Received malformed response from transform". Could you please help us to fix this? if it is possible to parameterize the Count Macro, please share the the steps needs to carried out to fix this issue.

nitinarora1989 commented 2 years ago

@bhabanisankar - have you got any solution for this issue?

bhabanisankar commented 2 years ago

Hi @nitinarora1989- yeah, I have got the solution and that has implemented and tested successfully.

Thanks!! Bhabani Dixit

On Thu, 24 Mar 2022 at 12:33 AM, nitinarora1989 @.***> wrote:

@bhabanisankar https://github.com/bhabanisankar - have you got any solution for this issue?

— Reply to this email directly, view it on GitHub https://github.com/aws-cloudformation/aws-cloudformation-macros/issues/14#issuecomment-1076714298, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE3GD6BJC66WDXZFK74DSTLVBNTINANCNFSM47FEG4EA . You are receiving this because you were mentioned.Message ID: @.*** com>

MichaelKing54 commented 2 years ago

What is the solution for this?

hybridadmin commented 2 years ago

Hi @nitinarora1989- yeah, I have got the solution and that has implemented and tested successfully. Thanks!! Bhabani Dixit

would you be willing to share the solutions that you came up with, would be greatly appreciated as I have been looking for a solution for this as well ?

bhabanisankar commented 2 years ago

Hello, apologies for the late reply, the solution is to re-deploy a new version of macro template which has functionality to handle parameters from the json files. We raised a ticket to AWS support and got a new version of Macro-template that was deployed to handle parameter value for count, i hope this helps.

Thanks!! Bhabani Dixit

ebasanez commented 1 year ago

I see the code for Count macro has not changed since 2021. Where can I find the version that supports parameters in Count macro?