Skip to content

Commit e05b34f

Browse files
committed
docs: added comments to which ssm parameters are added manually
1 parent e4ff47d commit e05b34f

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

frontend/scripts/generate-amplify-outputs.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ const ssm = new SSMClient({ region: REGION });
3333
const parameterNames = {
3434
// REGION is optional (falls back to env/REGION)
3535
COGNITO_DOMAIN_URL: `/techtix/cognito-domain-url-${STAGE}`,
36-
COGNITO_REDIRECT_SIGNIN_URI: `/techtix/cognito-signin-redirect-${STAGE}`,
36+
COGNITO_REDIRECT_SIGNIN_URI: `/techtix/cognito-signin-redirect-${STAGE}`, // Added manually in AWS console for non-prod stages, can be missing in prod since we can use the same redirect URI for all prod-like stages
3737
COGNITO_USER_POOL_ID: `/techtix/cognito-user-pool-id-${STAGE}`,
3838
COGNITO_CLIENT_ID: `/techtix/cognito-user-pool-client-id-${STAGE}`,
39-
...(STAGE !== 'prod' && { COGNITO_REDIRECT_SIGNIN_URI_LOCAL: '/techtix/cognito-signin-redirect-local' })
39+
...(STAGE !== 'prod' && { COGNITO_REDIRECT_SIGNIN_URI_LOCAL: '/techtix/cognito-signin-redirect-local' }) // Only used for local development, not needed in prod since we can use the same redirect URI for all prod-like stages
4040
};
4141

4242
async function getByNames(map) {

frontend/scripts/generate-env.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ const ssm = new SSMClient({ region: REGION });
2828

2929
/**
3030
* Map of logical keys -> array of candidate SSM parameter names (first found wins).
31+
* Note: These SSM parameters are added manually in the AWS console, and must match the names here.
3132
*/
3233
const parameterNames = {
3334
VITE_API_AUTH_BASE_URL: `/techtix/auth-api-url-${STAGE}`,

0 commit comments

Comments
 (0)