Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Commit

Permalink
Updates to cttso stacks
Browse files Browse the repository at this point in the history
Update script to collect pieriandx access token in safe-path
chmod of lambda codes to executables
  • Loading branch information
alexiswl committed May 27, 2024
1 parent 7ad155d commit 67e9528
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,19 @@ get_pieriandx_access_token() {
: '
Collect the PierianDx access token
'
local access_token_temp_file="$(mktemp access_token.XXX.json)"
local access_token_tmpdir
local access_token_temp_file

access_token_tmpdir="$(
mktemp \
--directory \
"${CONTAINER_MOUNT_POINT}/${sample_name}.access_token.XXX"
)"
access_token_temp_file="$( \
mktemp \
--tmpdir="${access_token_tmpdir}" \
"${sample_name}.access_token.XXX"
)"

# Run the lambda command to collect the access token
aws lambda invoke --function-name "${PIERIANDX_ACCESS_TOKEN_LAMBDA_FUNCTION_NAME}" "${access_token_temp_file}" 1>/dev/null
Expand Down
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ COPY ${APP_ROOT}/${THIS_DIR_NAME}/lambda_code.py ./
COPY ${APP_ROOT}/layers/ ./layers/

RUN ( \
chmod +rx ./lambda_code.py && \
cd layers && \
python setup.py install \
)
Expand Down
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ COPY ${APP_ROOT}/${THIS_DIR_NAME}/lambda_code.py ./
COPY ${APP_ROOT}/layers/ ./layers/

RUN ( \
chmod +rx ./lambda_code.py && \
cd layers && \
python setup.py install \
)
Expand Down
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ COPY ${APP_ROOT}/${THIS_DIR_NAME}/lambda_code.py ./
COPY ${APP_ROOT}/layers/ ./layers/

RUN ( \
chmod +rx ./lambda_code.py && \
cd layers && \
python setup.py install \
)
Expand Down
Empty file.

0 comments on commit 67e9528

Please sign in to comment.