ApplicationsRnD Chat / Project G

Project-G

Setup

Code

Github Repo: https://github.com/gred-ecdi/project-g/

AWS

ECR: AWS Console URI: 712649426017.dkr.ecr.us-west-2.amazonaws.com/project-g/ui:v1.1.1 Cognito AWS Console AWS Console -> App Integration

  • Grafana Kubernetes Setup Use k9s Context: ace-prod (cluster) Namespace: chatbot Main deployment: gred-project-g-canadaeast Backup deployment: gred-project-g-francecentral Azure Setup OpenAI Portal Main OpenAI Resource (Canada East) Azure Service Health (Subscription: AZU_ENT_B_acepdchgpt_3591841) Runbook Update App Image Clone repo Build docker image Login to ECR Push to ECR Update EKS deployment

$ docker build -t 712649426017.dkr.ecr.us-west-2.amazonaws.com/project-g/ui:v1.1.1 . $ aws ecr get-login-password —region us-west-2 | docker login —username AWS —password-stdin 712649426017.dkr.ecr.us-west-2.amazonaws.com $ docker push 712649426017.dkr.ecr.us-west-2.amazonaws.com/project-g/ui:v1.1.1 $ k9s # update deployment

K9s -> context (ace-prod) -> namespace (chatbot) -> deployment (gred-project-g-canadaeast) -> Press “E” -> Update “image” field with the new tag Scaling Up France Central Region k9s Scale up (Press “S”) gred-project-g-francecentral deployment to 3 replicas Switching from WAM to WAMQA Go to Cognito App Integration above Under “Hosted UI” Click “Edit” Under “Identity providers”: unselect “wam” and select “wamqa” Click save Changes are reflected automatically NOTE: Some users might need to clear their cookies Figure out if user belongs to correct groups Using CIDM - Much Easier Using ldapsearch

$ ldapsearch -H ldap://128.137.16.210 -x -W -D “CN=hamzam1,OU=Users,OU=Other,OU=SanFrancisco,OU=AdminUnits,DC=nala,DC=roche,DC=com” -b “DC=nala,DC=roche,DC=com” “(sAMAccountName=zamaninp)” | grep -E ‘gred_users_all|projectg-ecdi-ace-ai’ Change API Keys Get API Keys Login to the Azure account , use AZU_ENT_B_acepdchgpt_3591841 If the current resource is rdchat-eastus2-prod , go to the Key and Endpoint to regenerate the value for key and endpoints In your terminal, switch your context to ace-prod, then use k9s to change the value of your secret keys.