-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (36 loc) · 905 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
SHELL:=/bin/bash
.SILENT:
MAKEFLAGS += --no-print-directory
# Default action:
.DEFAULT_GOAL := cdk-synth
#########################
## Generic CDK Helpers ##
#########################
.PHONY := cdk-synth
cdk-synth:
echo "Synthesizing Stack..."
echo ""
cdk synth
.PHONY := cdk-deploy
cdk-deploy:
echo "Deploying the Stack..."
echo "Starting at: `date +'%-I:%M%P (%Ss)'`"
echo ""
cdk deploy GithubOidcStack --require-approval never
echo "Finished at: `date +'%-I:%M%P (%Ss)'`"
.PHONY := cdk-destroy
cdk-destroy:
echo "Destroying the Stack..."
echo "Starting at: `date +'%-I:%M%P (%Ss)'`"
echo ""
cdk destroy GithubOidcStack --force
echo "Finished at: `date +'%-I:%M%P (%Ss)'`"
###################
## Misc Commands ##
###################
.PHONY := aws-whoami
aws-whoami:
# Make sure you're in the right account
aws sts get-caller-identity \
--query "$${query:-Arn}" \
--output text