Skip to content

Commit 1d107c8

Browse files
Update util scripts
Signed-off-by: Łukasz Gryglicki <[email protected]>
1 parent 0c6b813 commit 1d107c8

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

setenv.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
rm -rf /tmp/aws
44
cp -R /root/.aws /tmp/.aws
55

6-
data="$(aws sts assume-role --role-arn arn:aws:iam::395594542180:role/product-contractors-role --profile lfproduct --role-session-name lfproduct-dev-session)"
6+
dev_arn="$(cat ./product-contractors-role.dev.secret)"
7+
data="$(aws sts assume-role --role-arn ${dev_arn} --profile lfproduct --role-session-name lfproduct-dev-session)"
78
export AWS_ACCESS_KEY_ID="$(echo "${data}" | jq -r '.Credentials.AccessKeyId')"
89
export AWS_SECRET_ACCESS_KEY="$(echo "${data}" | jq -r '.Credentials.SecretAccessKey')"
910
export AWS_SESSION_TOKEN="$(echo "${data}" | jq -r '.Credentials.SessionToken')"

utils/health_python_v2.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# API_URL=https://3f13-147-75-85-27.ngrok-free.app (defaults to localhost:5000)
2+
# API_URL=https://[xyz].ngrok-free.app (defaults to localhost:5000)
33
if [ -z "$API_URL" ]
44
then
55
export API_URL="http://localhost:5000"

utils/request_corporate_signature_post.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#!/bin/bash
2-
# API_URL=https://3f13-147-75-85-27.ngrok-free.app (defaults to localhost:5000)
2+
# API_URL=https://[xyz].ngrok-free.app (defaults to localhost:5000)
33
# company_id='862ff296-6508-4f10-9147-2bc2dd7bfe80'
44
# project_id='88ee12de-122b-4c46-9046-19422054ed8d'
55
# return_url_type='github'
66
# return_url='http://localhost'
77
# TOKEN='...' - Auth0 JWT bearer token
88
# DEBUG=1 TOKEN="$(cat ./auth0.token.secret)" ./utils/request_corporate_signature_post.sh 862ff296-6508-4f10-9147-2bc2dd7bfe80 88ee12de-122b-4c46-9046-19422054ed8d github 'http://localhost'
9-
# TODO: this is WIP atm
9+
# TODO: this is WIP atm (due to AUTH0 token and X-ACL missing)
1010

1111
if [ -z "$TOKEN" ]
1212
then

utils/signature_post.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# API_URL=https://3f13-147-75-85-27.ngrok-free.app (defaults to localhost:5000)
2+
# API_URL=https://[token].ngrok-free.app (defaults to localhost:5000)
33
# TOKEN='...' - Auth0 JWT bearer token
44
# BODY='{...}' - signature body
55

0 commit comments

Comments
 (0)