Setting up GitHub Secrets
In this section, we’ll configure the required secrets for our GitHub Actions workflow.
Gathering your ENV variables:
- Open a new terminal in VSCode Server.
- Run these commands to view your connection details in your VSCode Terminal:
echo $PROD_DATABASE_URL # Shows your PROD database URL
echo $DEV_DATABASE_URL # Shows the full connection string

🔐 Adding Repository Secrets
- Navigate to your GitHub repository and click on “Settings”
- In the left sidebar, click “Secrets and variables” then “Actions”
- Click “New repository secret”

- Add your AWS Role from the previous section:
- Name:
AWS_ACCOUNT_ROLE
- Secret: Add the “GitHubActionsRoleArn” value copied from the OIDC setup cloudformation outputs.

- Add your RDS connection string:
- Name:
PROD_DATABASE_URL
- Secret: Copy the “PROD_DATABASE_URL” value from VSCode Terminal output in Step 1 of this section.

- Add your Neon connection string:
- Name:
DEV_DATABASE_URL
- Secret: Your Neon connection string (DEV_DATABASE_URL) value from VSCode Terminal output in Step 1 of this section.

- Add your AWS region:
- Name:
AWS_REGION
- Secret: Your AWS region (Needs to be:
us-west-2
)

✅ Verification
Confirm all secrets are listed in your repository:
- AWS_ACCOUNT_ROLE
- PROD_DATABASE_URL
- DEV_DATABASE_URL
- AWS_REGION

🎯 Next Steps
With our secrets configured, let’s set up our GitHub Actions workflow.