-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
29 lines (23 loc) · 823 Bytes
/
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
.PHONY: setup build deploy format create-signing-profile clean
setup:
python3 -m venv .venv
.venv/bin/python3 -m pip install -U pip
.venv/bin/python3 -m pip install -r requirements-dev.txt
.venv/bin/python3 -m pip install -r dependencies/requirements.txt
.venv/bin/pre-commit install
create-signing-profile:
aws signer put-signing-profile --platform-id "AWSLambda-SHA384-ECDSA" --profile-name AccountSetupProfile
build:
sam build -u
deploy:
sam deploy \
--signing-profiles \
SSOAssignmentFunction=AccountSetupProfile \
ServiceCatalogPortfolioFunction=AccountSetupProfile \
RegionalFunction=AccountSetupProfile \
DependencyLayer=AccountSetupProfile \
--tags "GITHUB_ORG=aws-samples GITHUB_REPO=aws-control-tower-account-setup-using-step-functions"
clean:
sam delete
format:
.venv/bin/black .