Skip to content

Commit 7f3031b

Browse files
committed
WIP: Updates to make file
1 parent 348c5cf commit 7f3031b

1 file changed

Lines changed: 16 additions & 18 deletions

File tree

Makefile

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -58,18 +58,16 @@ retrieve-proxygen-key: # Obtain the 'machine user' credentials from AWS SSM (Dev
5858
aws ssm get-parameter --name /proxygen/private_key_temp --with-decryption | jq ".Parameter.Value" --raw-output \
5959
> ~/.proxygen/eligibility-signposting-api.pem
6060

61-
# setup-proxygen-credentials: # Copy Proxygen templated credentials to where it expected them
62-
# cd specification && cp -r .proxygen ~
63-
#
64-
# setup-proxygen-credentials-ptl: # Copy Proxygen templated credentials to where it expected them
65-
# cd specification && cp -r .proxygen/credentials-ptl.yaml ~/.proxygen/credentials.yaml && \
66-
# cp .proxygen/settings-ptl.yaml ~/.proxygen/settings.yaml
67-
# proxygen credentials list
68-
#
69-
# setup-proxygen-credentials-prod: # Copy Proxygen templated credentials to where it expected them
70-
# cd specification && cp -r .proxygen/credentials-prod.yaml ~/.proxygen/credentials.yaml && \
71-
# cp .proxygen/settings-ptl.yaml ~/.proxygen/settings.yaml
72-
# proxygen credentials list
61+
# retrieve-proxygen-key: # Obtain the 'machine user' credentials from AWS SSM (Development environment)
62+
# mkdir -p ~/.proxygen && \
63+
# aws ssm get-parameter --name /proxygen/private_key_temp_$(ENV) --with-decryption | jq ".Parameter.Value" --raw-output \
64+
# > ~/.proxygen/eligibility-signposting-api-$(ENV).pem
65+
66+
retrieve-proxygen-key-ptl:
67+
$(MAKE) retrieve-proxygen-key ENV=ptl
68+
69+
retrieve-proxygen-key-prod:
70+
$(MAKE) retrieve-proxygen-key ENV=prod
7371

7472
setup-proxygen-credentials:
7573
cd specification && \
@@ -83,27 +81,27 @@ setup-proxygen-credentials-prod:
8381
$(MAKE) setup-proxygen-credentials ENV=prod
8482

8583
get-spec: # Get the most recent specification live in proxygen
86-
$(MAKE) setup-proxygen-credentials
84+
$(MAKE) setup-proxygen-credentials-prod
8785
proxygen spec get
8886

8987
get-spec-uat: # Get the most recent specification live in proxygen
90-
$(MAKE) setup-proxygen-credentials
88+
$(MAKE) setup-proxygen-credentials-ptl
9189
proxygen spec get --uat
9290

9391
publish-spec: # Publish the specification to proxygen
94-
$(MAKE) setup-proxygen-credentials
92+
$(MAKE) setup-proxygen-credentials-prod
9593
proxygen spec publish build/specification/prod/eligibility-signposting-api.yaml
9694

9795
publish-spec-uat: # Publish the specification to proxygen
98-
$(MAKE) setup-proxygen-credentials
96+
$(MAKE) setup-proxygen-credentials-ptl
9997
proxygen spec publish build/specification/preprod/eligibility-signposting-api.yaml --uat
10098

10199
delete-spec: # Delete the specification from proxygen
102-
$(MAKE) setup-proxygen-credentials
100+
$(MAKE) setup-proxygen-credentials-prod
103101
proxygen spec delete
104102

105103
delete-spec-uat: # Delete the specification from proxygen
106-
$(MAKE) setup-proxygen-credentials
104+
$(MAKE) setup-proxygen-credentials-ptl
107105
proxygen spec delete --uat
108106

109107
# Specification

0 commit comments

Comments
 (0)