aws-cloudformation / cloudformation-coverage-roadmap

The AWS CloudFormation Public Coverage Roadmap
https://aws.amazon.com/cloudformation/
Creative Commons Attribution Share Alike 4.0 International
1.11k stars 56 forks source link

Fn::ForEach can't ref logical ids of resources created with &{Identifier} #2150

Open boonew2 opened 1 month ago

boonew2 commented 1 month ago

Resource Name

Fn::ForEach

Details

The &{Identifier} syntax strips non alpha-numeric chars from the iterating identifier, but that syntax only works in the OutputKey and not the OutputValue. This means that you can create resources in the Fn::ForEach that can't be referenced by other resources in the iteration.

I think this could be functionally resolved a few different ways: