forked from aws-samples/one-observability-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildspec.yml
19 lines (19 loc) · 1.05 KB
/
buildspec.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
version: 0.2
phases:
install:
commands:
- nohup /usr/local/bin/dockerd --host=unix:///var/run/docker.sock --host=tcp://127.0.0.1:2375 --storage-driver=overlay2 &
- timeout 15 sh -c "until docker info; do echo .; sleep 1; done"
- npm install aws-cdk -g
- CDK_STACK=$(aws cloudformation list-stacks --query 'StackSummaries[?(StackName==`CDKToolkit` && StackStatus==`CREATE_COMPLETE`)].StackId' --output text)
build:
commands:
- cd ./PetAdoptions/cdk/pet_stack/
- npm install
- if [ -z "$CDK_STACK" ] ; then cdk bootstrap ; else echo "Already bootstrapped" ; fi
- npm run build
- cdk deploy Services --context admin_role=${EE_TEAM_ROLE_ARN} --context is_event_engine="true" --require-approval=never --verbose -O ./out/out.json
- cdk deploy Applications --require-approval=never --verbose -O ./out/out.json
- aws s3api get-object --bucket one-observability-workshop-tracker --key lab_user.txt resources/lab_user.txt --region us-east-1
artifacts:
files: './PetAdoptions/cdk/pet_stack/out/out.json'