We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If you reference a resource that was created with the &{} syntax, the stack will fail with unresolved resource dependencies template format error:
&{}
Template format error: Unresolved resource dependencies [SNS&{TopicId}] in the Resources block of the template
ForEach transform resolves the generated resource.
ForEach transform does not resolve the referenced generated resource.
Transform: 'AWS::LanguageExtensions' Parameters: TopicIds: Type: CommaDelimitedList Default: us.anthropic.claude-3-5-sonnet-20241022-v2:0 Resources: 'Fn::ForEach::Topics': - TopicId - !Ref TopicIds - 'SNS&{TopicId}': Type: "AWS::SNS::Topic" 'ALARM&{TopicId}': Type: AWS::CloudWatch::Alarm Properties: ActionsEnabled: true OKActions: - !Ref 'Fn::Sub': "SNS&{TopicId}" AlarmActions: - !Ref 'Fn::Sub': "SNS&{TopicId}" InsufficientDataActions: [] MetricName: ModelMetric Namespace: CustomNamespace Statistic: Sum Dimensions: - Name: TopicId Value: !Ref TopicId Period: 10 EvaluationPeriods: 1 DatapointsToAlarm: 1 Threshold: 0 ComparisonOperator: GreaterThanOrEqualToThreshold TreatMissingData: notBreaching
Only workaround is not to use the &{} syntax and provide only alphanumeric identifiers:
Transform: 'AWS::LanguageExtensions' Parameters: TopicIds: Type: CommaDelimitedList Default: usanthropicclaude353sonnet20241022v20 Resources: 'Fn::ForEach::Topics': - TopicId - !Ref TopicIds - 'SNS${TopicId}': Type: "AWS::SNS::Topic" 'ALARM${TopicId}': Type: AWS::CloudWatch::Alarm Properties: ActionsEnabled: true OKActions: - !Ref 'Fn::Sub': "SNS${TopicId}" AlarmActions: - !Ref 'Fn::Sub': "SNS${TopicId}" InsufficientDataActions: [] MetricName: ModelMetric Namespace: CustomNamespace Statistic: Sum Dimensions: - Name: TopicId Value: !Ref TopicId Period: 10 EvaluationPeriods: 1 DatapointsToAlarm: 1 Threshold: 0 ComparisonOperator: GreaterThanOrEqualToThreshold TreatMissingData: notBreaching
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Community Note
Tell us about the bug
If you reference a resource that was created with the
&{}
syntax, the stack will fail with unresolved resource dependencies template format error:Expected behavior
ForEach transform resolves the generated resource.
Observed behavior
ForEach transform does not resolve the referenced generated resource.
Test cases
Additional context
Only workaround is not to use the
&{}
syntax and provide only alphanumeric identifiers:The text was updated successfully, but these errors were encountered: