-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathMakefile
30 lines (22 loc) · 1.28 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
get-secret:
vault write -field=secret_id -f auth/approle/role/infrastructure-pipeline/secret-id
check-aws-credentials:
vault read -field=lease_duration infrastructure-pipeline/aws/creds/pipeline
vault list sys/leases/lookup/infrastructure-pipeline/aws/creds/pipeline
get-database-password:
vault read -field=username infrastructure-pipeline/database/creds/application
vault list sys/leases/lookup/infrastructure-pipeline/database/creds/application
list-leases:
vault list sys/leases/lookup/infrastructure-pipeline/aws/creds/pipeline
vault list sys/leases/lookup/infrastructure-pipeline/database/creds/application
build-network:
cd network && terraform init -backend-config=backend
cd network && terraform apply
revoke:
vault lease revoke -prefix infrastructure-pipeline/aws/creds
vault lease revoke -prefix infrastructure-pipeline/database/creds
vault lease revoke -prefix infrastructure-pipeline/terraform/creds
boundary-auth:
boundary authenticate password -auth-method-id $(shell cd boundary && terraform output -raw boundary_auth_method_id) -login-name rosemary -password $(shell cd boundary && terraform output -raw boundary_operations_password)
ssh:
boundary connect ssh -target-id=$(shell cd boundary && terraform output -raw boundary_target_runner) -username=ubuntu -- -i id_rsa