-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathamplify.yml
25 lines (24 loc) · 1.01 KB
/
amplify.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".
version: 1
frontend:
phases:
preBuild:
commands:
- nvm install 14.18.1
- nvm use 14.18.1
- yarn
- yum install -y jq
build:
commands:
- yarn dist:dev
- aws secretsmanager get-secret-value --secret-id ${APP_NAME}-env --query SecretString --output text | jq -r "." | jq "del(.AZURE_IDP_CLIENT_ID) | del(.AZURE_IDP_CLIENT_SECRET)" > app-env.json
- aws ssm get-parameter --name "/global/okta/auth-server-config" | jq ".Parameter.Value | fromjson | .${APP_PRODUCT_CATEGORY}" > okta-server-config.json
- aws ssm get-parameter --name "/${APP_NAME}/okta/client-config" | jq ".Parameter.Value | fromjson" > okta-app-client-credentials.json
- jq -s ".[0] + .[1] + .[2]" app-env.json okta-server-config.json okta-app-client-credentials.json > dist/appConfig.json
artifacts:
baseDirectory: dist
files:
- "**/*"
cache:
paths:
- node_modules/**/*