Skip to content

Commit

Permalink
Expose worker roles as stack output
Browse files Browse the repository at this point in the history
  • Loading branch information
discordianfish committed Feb 20, 2018
1 parent ad421b9 commit ce2ce9f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kubernetes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1196,6 +1196,10 @@ Resources:
PrivateSubnetC: !Ref PrivateSubnetC

Outputs:
WorkerRole:
Value: !GetAtt WorkerPoolDefault.Outputs.WorkerRole
Export:
Name: !Sub "${AWS::StackName}-WorkerRole"
WorkerTemplateURL:
Value: !Sub
- "https://s3.amazonaws.com/${assetBucket}/${DomainName}/templates/worker.yaml"
Expand Down
3 changes: 3 additions & 0 deletions templates/worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -349,3 +349,6 @@ Resources:
# MinInstancesInService: 1
# PauseTime: PT15M
# WaitOnResourceSignals: true
Outputs:
WorkerRole:
Value: !Ref WorkerRole

0 comments on commit ce2ce9f

Please sign in to comment.