-
Notifications
You must be signed in to change notification settings - Fork 41
/
Makefile.Puppet
79 lines (62 loc) · 3.7 KB
/
Makefile.Puppet
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
.PHONY: version bootstrap bootstrap-self-as-spoke bootstrap-branch expand deploy deploy-spoke
## @Puppet_commands Runs servicecatalog-puppet version
version:
poetry run servicecatalog-puppet version
## @Puppet_commands Runs servicecatalog-puppet bootstrap
bootstrap:
poetry run servicecatalog-puppet --info bootstrap --branch-name main --should-validate
## @Puppet_commands Runs servicecatalog-puppet bootstrap to a branch
bootstrap-branch:
export SCP_VERSION_OVERRIDE="https://github.com/awslabs/aws-service-catalog-puppet/archive/issues/yaml-to-json-for-task-reference.zip"
export SCM_BRANCH_NAME=main
poetry run servicecatalog-puppet --info bootstrap --branch-name main
## @Puppet_commands Runs servicecatalog-puppet bootstrap-spoke for the current aws profile
bootstrap-self-as-spoke:
@echo "Bootstrapping $$(aws sts get-caller-identity --query Account --output text) as a spoke for $$(aws sts get-caller-identity --query Account --output text)"
poetry run servicecatalog-puppet --info bootstrap-spoke $$(aws sts get-caller-identity --query Account --output text)
## @Puppet_commands Runs servicecatalog-puppet bootstrap-spoke for the current aws profile
bootstrap-spoke:
@echo "Bootstrapping $$(aws sts get-caller-identity --query Account --output text) as a spoke for $(PUPPET_ACCOUNT_ID)"
poetry run servicecatalog-puppet --info bootstrap-spoke $(PUPPET_ACCOUNT_ID)
## @Puppet_commands Runs servicecatalog-puppet --info expand for the checked out manifest file
expand:
poetry run servicecatalog-puppet --info expand \
ignored/src/ServiceCatalogPuppet/manifest.yaml
## @Puppet_commands Runs servicecatalog-puppet --info generate-task-reference for the checked out manifest file
generate-task-reference:
poetry run servicecatalog-puppet --info generate-task-reference \
ignored/src/ServiceCatalogPuppet/manifest-expanded.yaml
## @Puppet_commands Runs servicecatalog-puppet --info deploy-from-task-reference for the checked out manifest file
deploy-from-task-reference-with-viz:
time poetry run viztracer servicecatalog-puppet --info deploy-from-task-reference --num-workers 40 \
ignored/src/ServiceCatalogPuppet/
## @Puppet_commands Runs servicecatalog-puppet --info deploy-from-task-reference for the checked out manifest file
deploy-from-task-reference:
time poetry run servicecatalog-puppet --info deploy-from-task-reference --num-workers 40 \
ignored/src/ServiceCatalogPuppet/
## @uppet_commands Runs servicecatalog-puppet --info deploy-from-task-reference for the checked out manifest file
deploy-from-task-reference-single-account:
time poetry run servicecatalog-puppet --info deploy-in-spoke-from-task-reference \
--execution-mode spoke \
--puppet-account-id 105463962595 \
--single-account 648052676434 \
--home-region eu-west-1 \
--regions eu-west-1,eu-west-2,eu-west-3,us-east-1,us-west-1 \
--should-collect-cloudformation-events False \
--should-forward-events-to-eventbridge False \
--should-forward-failures-to-opscenter True \
ignored/src/ServiceCatalogPuppet/
## @Puppet_commands Runs servicecatalog-puppet validate for a spoke
validate:
poetry run servicecatalog-puppet validate ignored/src/ServiceCatalogPuppet/manifest.yaml
## @Puppet_commands Runs servicecatalog-puppet codebuild full-pipeline export functionality
export-full-puppet-stats:
poetry run servicecatalog-puppet export-full-puppet-stats -f csv
## @Puppet_commands Runs servicecatalog-puppet codebuild single-account export functionality
export-singleaccount-stats:
poetry run servicecatalog-puppet export-singleaccount-stats -f csv
## @puppet_commands Runs servicecatalog-puppet --info show-pipelines
show-pipelines:
poetry run servicecatalog-puppet --info show-pipelines
vizviewer:
poetry run vizviewer result.json