Closed rohan-1995 closed 4 months ago
Hey, I am having the same problem. I am unable to output the resources that are being created using the Count macro. The error states: Unresolved resource dependencies [RDSDBInstance2] in the Outputs block of the template
I also considered it as a list of strings and tried joining the output, using the below script
RDSDBInstance2:
Description: Aurora Database instance
Value: !Join
- ''
- ','
- !Ref RDSDBInstance2
this time the error was: Template error: every Fn::Join object requires two parameters, (1) a string delimiter and (2) a list of strings to be joined or a function that returns a list of strings (such as Fn::GetAZs) to be joined.
If anyone has solved this problem, kindly help me.
I even tried using count in output block but got below error
Error: Template format error: Invalid outputs property : [Count].
RDSDBInstance:
Description: Aurora Database instance
Value: !Ref RDSDBInstance
Count: !Ref DBInstancesCount
We are archiving this repository in favor of similar content located here: https://github.com/aws-cloudformation/aws-cloudformation-templates/tree/main/aws/services/CloudFormation/MacrosExamples
I am creating multiple ec2 instances using Count macro. Macro code does not account Outputs section when I try to obtain physical ids of launched EC2 Instances.