-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yml
42 lines (36 loc) · 1.09 KB
/
Taskfile.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# https://taskfile.dev
version: "3"
vars:
AWS_REGION: eu-central-1
KENDRA_INDEX_ID:
sh: aws kendra list-indices --query "IndexConfigurationSummaryItems[0].Id" --output text --region eu-west-1
KENDRA_LANGUAGE_CODE: de
KENDRA_REGION: eu-west-1
STACK: goragkendrabedrock
tasks:
parameter:
desc: Create the parameter store entries
cmds:
- aws ssm put-parameter --name "/rag/KENDRA_INDEX_ID" --value {{.KENDRA_INDEX_ID}} --type String --region {{.AWS_REGION}} --overwrite
- aws ssm put-parameter --name "/rag/KENDRA_LANGUAGE_CODE" --value {{.KENDRA_LANGUAGE_CODE}} --type String --region {{.AWS_REGION}} --overwrite
- aws ssm put-parameter --name "/rag/KENDRA_REGION" --value {{.KENDRA_REGION}} --type String --region {{.AWS_REGION}} --overwrite
build:
desc: Sam build
cmds:
- sam build
silent: true
deploy:
desc: Sam deploy
deps:
- build
cmds:
- sam deploy
silent: true
destroy:
desc: sam delete
cmds:
- sam delete
sync:
desc: sync code
cmds:
- sam sync --code --stack-name {{.STACK}} --watch