Skip to content

Commit

Permalink
fix: OB-38134 make parent stack outputs conditioned on nested stack (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
obs-gh-virjramakrishnan authored Oct 24, 2024
1 parent ecaff76 commit c05aaab
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion apps/stack/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,21 @@ Conditions:
- !Equals
- !Ref DatasourceID
- ""

HasLogGroupNamePatterns: !Not
- !Equals
- !Join
- ','
- !Ref LogGroupNamePatterns
- ''
HasLogGroupNamePrefixes: !Not
- !Equals
- !Join
- ','
- !Ref LogGroupNamePrefixes
- ''
EnableSubscription: !Or
- !Condition HasLogGroupNamePatterns
- !Condition HasLogGroupNamePrefixes
Resources:
Topic:
Type: "AWS::SNS::Topic"
Expand Down Expand Up @@ -452,20 +466,23 @@ Outputs:
Description: >-
Subscriber Function ARN. This function is responsible for log group
discovery, filtering and subscription.
Condition: EnableSubscription
Value: !GetAtt
- LogWriter
- Outputs.SubscriberArn
LogWriterSubscriberQueueArn:
Description: >-
LogWriter Subscriber Queue ARN. This queue is used by the subscriber
function to fan out execution of subscription requests.
Condition: EnableSubscription
Value: !GetAtt
- LogWriter
- Outputs.SubscriberQueueArn
SubscriberLogGroupName:
Description: >-
LogWriter Subscriber Log Group Name. This log group contains useful
information for debugging the Subscriber function.
Condition: EnableSubscription
Value: !GetAtt
- LogWriter
- Outputs.SubscriberLogGroupName

0 comments on commit c05aaab

Please sign in to comment.