forked from awslabs/aws-service-catalog-puppet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.Puppet
More file actions
48 lines (39 loc) · 2.1 KB
/
Makefile.Puppet
File metadata and controls
48 lines (39 loc) · 2.1 KB
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
.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
## @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 bootstrap-branch for the local checkout branch
bootstrap-branch:
poetry run servicecatalog-puppet --info bootstrap-branch \
$$(git rev-parse --abbrev-ref HEAD)
## @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 deploy
deploy:
poetry run servicecatalog-puppet --info deploy \
ignored/src/ServiceCatalogPuppet/manifest-expanded.yaml
## @Puppet_commands Runs servicecatalog-puppet --info deploy for a spoke
deploy-spoke:
poetry run servicecatalog-puppet --info deploy \
--execution-mode spoke \
--puppet-account-id $(PUPPET_ACCOUNT_ID) \
--single-account $(SPOKE_ACCOUNT_ID) \
--home-region eu-west-1 \
--regions eu-west-1,eu-west-2,eu-west-3 \
--should-collect-cloudformation-events true \
--should-forward-events-to-eventbridge true \
--should-forward-failures-to-opscenter true \
ignored/src/ServiceCatalogPuppet/manifest-expanded.yaml