Skip to content

Commit 5ae5d02

Browse files
committed
chore: add output in workflow
1 parent 8086355 commit 5ae5d02

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/upgrade-current-deployment-infra.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,5 +76,11 @@ jobs:
7676
echo "Deployment state: $deployment_state"
7777
echo "Active deployment: $active_deployment"
7878
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+
7985
env:
8086
TERRAFORM_VARS: ${{ vars.TERRAFORM_VARS }}

deployment/environments/staging/outputs.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,7 @@ output "deployment_state" {
99
output "api_gateway_url" {
1010
value = module.api_gateway.api_gateway_url
1111
}
12+
13+
output "rds_endpoint" {
14+
value = module.storage.rds_endpoint
15+
}

0 commit comments

Comments
 (0)