forked from aws-samples/magento-ecs-cdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (28 loc) · 1.06 KB
/
Makefile
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
CDK_STACK_NAME?=magento
diff: projen
npx cdk diff
verif:
echo "You are going to deploy on CDK_STACK_NAME=$(CDK_STACK_NAME)"
sleep 5
synth: projen
npx cdk synth
build:
npx projen build
deploy: verif projen
npx cdk deploy --require-approval=never
deploy-no-rollback : verif projen
npx cdk deploy --require-approval=never --no-rollback
test : projen
npx projen test
destroy:
npx cdk destroy
describe:
aws cloudformation describe-stacks --stack-name $(CDK_STACK_NAME) --query "Stacks[*].Outputs" --output table
connect:
@echo $(shell aws cloudformation describe-stacks --stack-name $(CDK_STACK_NAME) --query 'Stacks[*].Outputs[?OutputKey==`EcsExecCommandMagentoService`].OutputValue' --output text)
@echo $(shell aws cloudformation describe-stacks --stack-name $(CDK_STACK_NAME) --query 'Stacks[*].Outputs[?OutputKey==`EcsExecCommandMagentoServiceAdmin`].OutputValue' --output text)
projen:
npx projen
#run npx projen build in this not-connected container to simulate gh action build
local-test:
docker run -ti -v $(PWD):/src -w /src allamand/eksutils zsh