forked from klothoplatform/infracopilot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontainer_start.sh
More file actions
10 lines (7 loc) · 776 Bytes
/
Copy pathcontainer_start.sh
File metadata and controls
10 lines (7 loc) · 776 Bytes
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
aws secretsmanager get-secret-value --secret-id $FGA_CLIENT_ID --query SecretString --output text | tr -d '\n' > fga_client_id.key
aws secretsmanager get-secret-value --secret-id $FGA_SECRET --query SecretString --output text | tr -d '\n' > fga_secret.key
aws secretsmanager get-secret-value --secret-id $AUTH0_CLIENT_ID --query SecretString --output text | tr -d '\n' > auth0_client_id.key
aws secretsmanager get-secret-value --secret-id $AUTH0_SECRET --query SecretString --output text | tr -d '\n' > auth0_client_secret.key
aws secretsmanager get-secret-value --secret-id $AZURE_OPENAI_API_KEY --query SecretString --output text | tr -d '\n' > azure_openai_api_key.key
exec gunicorn --timeout 0 -w 9 -k uvicorn.workers.UvicornWorker -b 0.0.0.0:80 src.main:app