diff --git a/templates/workloads/services/backend/cf.yml b/templates/workloads/services/backend/cf.yml index 84b091059c2..2840f3b383e 100644 --- a/templates/workloads/services/backend/cf.yml +++ b/templates/workloads/services/backend/cf.yml @@ -115,4 +115,11 @@ Resources: {{include "service-base-properties" . | indent 6}} ServiceRegistries: !If [ExposePort, [{RegistryArn: !GetAtt DiscoveryService.Arn, Port: !Ref ContainerPort}], !Ref "AWS::NoValue"] -{{include "addons" . | indent 2}} \ No newline at end of file +{{include "addons" . | indent 2}} + +Outputs: + DiscoveryServiceARN: + Description: ARN of the Discovery Service. + Value: !GetAtt DiscoveryService.Arn + Export: + Name: !Sub ${AWS::StackName}-DiscoveryServiceARN \ No newline at end of file diff --git a/templates/workloads/services/lb-web/cf.yml b/templates/workloads/services/lb-web/cf.yml index dfec178a24f..5370bdff523 100644 --- a/templates/workloads/services/lb-web/cf.yml +++ b/templates/workloads/services/lb-web/cf.yml @@ -351,3 +351,11 @@ Resources: Count: 0 {{include "addons" . | indent 2}} + + +Outputs: + DiscoveryServiceARN: + Description: ARN of the Discovery Service. + Value: !GetAtt DiscoveryService.Arn + Export: + Name: !Sub ${AWS::StackName}-DiscoveryServiceARN