-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathamplify.yml
More file actions
41 lines (34 loc) · 1.06 KB
/
amplify.yml
File metadata and controls
41 lines (34 loc) · 1.06 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
version: 1
backend:
phases:
build:
commands:
- npm ci --cache .npm --prefer-offline
- echo "Setting up .env for Lambda function agentHandler..."
- cd amplify/functions/agentHandler
# Clear old .env if it exists
- rm -f .env
# Write your variables into .env
- echo "BEDROCK_MODEL_ID=$BEDROCK_MODEL_ID" >> .env
- echo "BEDROCK_AWS_REGION=$BEDROCK_AWS_REGION" >> .env
- echo "GITHUB_TOKEN=$GITHUB_TOKEN" >> .env
- echo "BEDROCK_AWS_ACCESS_KEY_ID=$BEDROCK_AWS_ACCESS_KEY_ID" >> .env
- echo "BEDROCK_AWS_SECRET_ACCESS_KEY=$BEDROCK_AWS_SECRET_ACCESS_KEY" >> .env
- echo "DEFAULT_REPO=$DEFAULT_REPO" >> .env
- npm ci
# Return to the root directory
- cd ../../..
- echo "Deploying backend via ampx..."
- npx ampx pipeline-deploy --branch $AWS_BRANCH --app-id $AWS_APP_ID
frontend:
phases:
build:
commands:
- npm run build
artifacts:
baseDirectory: dist
files:
- '**/*'
cache:
paths:
- .npm/**/*