File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
deployment/environments/staging Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 76
76
echo "Deployment state: $deployment_state"
77
77
echo "Active deployment: $active_deployment"
78
78
terraform apply -var-file=tfvars.json -auto-approve -var="DEPLOYMENT_STATE=$deployment_state" -var="ACTIVE_DEPLOYMENT=$active_deployment"
79
+
80
+ # Display RDS connection information
81
+ echo "=== RDS Connection Information ==="
82
+ echo "RDS Endpoint: $(terraform output -raw rds_endpoint)"
83
+ echo "Connection String: postgresql://${{ secrets.DATALAYER_PG_USER }}:${{ secrets.DATALAYER_PG_PASSWORD }}@$(terraform output -raw rds_endpoint)/GitcoinDatalayer{{Green|Blue}}"
84
+
79
85
env :
80
86
TERRAFORM_VARS : ${{ vars.TERRAFORM_VARS }}
Original file line number Diff line number Diff line change @@ -9,3 +9,7 @@ output "deployment_state" {
9
9
output "api_gateway_url" {
10
10
value = module. api_gateway . api_gateway_url
11
11
}
12
+
13
+ output "rds_endpoint" {
14
+ value = module. storage . rds_endpoint
15
+ }
You can’t perform that action at this time.
0 commit comments