Skip to content

Commit

Permalink
Export cluster credentials and URL
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoVictor committed Jul 4, 2024
1 parent 65f1eea commit a85058b
Showing 1 changed file with 7 additions and 16 deletions.
23 changes: 7 additions & 16 deletions infrastructure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,23 +144,14 @@ Resources:
- subnet-06d34fb45ec9b8665

Outputs:
DatabaseUrl:
Value: !Join [
'',
[
'postgresql://',
!Sub '{{resolve:secretsmanager:${ClusterCredentials}::username}}',
':',
!Sub '{{resolve:secretsmanager:${ClusterCredentials}::password}}',
'@',
!GetAtt DbCluster.Endpoint.Address,
':',
!GetAtt DbCluster.Endpoint.Port,
'/coderunner?schema=public'
]
]
ClusterCredentials:
Value: !Ref ClusterCredentials
Export:
Name: coderunner-ClusterCredentials
ClusterUrl:
Value: !Join [ ':', [ !GetAtt DbCluster.Endpoint.Address, !GetAtt DbCluster.Endpoint.Port ] ]
Export:
Name: coderunner-DatabaseUrl
Name: coderunner-ClusterUrl
CodeRunnerBucketName:
Value: !Ref CodeRunnerBucket
Export:
Expand Down

0 comments on commit a85058b

Please sign in to comment.