Skip to content

Commit

Permalink
Show output from AWS CLI
Browse files Browse the repository at this point in the history
Now that GitHub Actions has the secrets, there should be no risk of the values being shown in the logs.
  • Loading branch information
martincostello committed Jan 20, 2024
1 parent 844840f commit c307965
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 24 deletions.
24 changes: 8 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -180,15 +180,13 @@ jobs:
aws lambda update-function-code \
--function-name "${FUNCTION_NAME}" \
--architectures "${LAMBDA_ARCHITECTURES}" \
--zip-file "fileb://./${LAMBDA_FUNCTION}.zip" \
> /dev/null
--zip-file "fileb://./${LAMBDA_FUNCTION}.zip"
- name: Wait for function code update
shell: bash
run: |
aws lambda wait function-updated-v2 \
--function-name "${FUNCTION_NAME}" \
> /dev/null
--function-name "${FUNCTION_NAME}"
- name: Update function configuration
shell: bash
Expand All @@ -201,15 +199,13 @@ jobs:
--memory-size "${LAMBDA_MEMORY}" \
--role "${LAMBDA_ROLE}" \
--runtime "${LAMBDA_RUNTIME}" \
--timeout "${LAMBDA_TIMEOUT}" \
> /dev/null
--timeout "${LAMBDA_TIMEOUT}"
- name: Wait for function configuration update
shell: bash
run: |
aws lambda wait function-updated-v2 \
--function-name "${FUNCTION_NAME}" \
> /dev/null
--function-name "${FUNCTION_NAME}"
tests-dev:
name: tests-dev
Expand Down Expand Up @@ -315,15 +311,13 @@ jobs:
aws lambda update-function-code \
--function-name "${FUNCTION_NAME}" \
--architectures "${LAMBDA_ARCHITECTURES}" \
--zip-file "fileb://./${LAMBDA_FUNCTION}.zip" \
> /dev/null
--zip-file "fileb://./${LAMBDA_FUNCTION}.zip"
- name: Wait for function code update
shell: bash
run: |
aws lambda wait function-updated-v2 \
--function-name "${FUNCTION_NAME}" \
> /dev/null
--function-name "${FUNCTION_NAME}"
- name: Update function configuration
shell: bash
Expand All @@ -336,15 +330,13 @@ jobs:
--memory-size "${LAMBDA_MEMORY}" \
--role "${LAMBDA_ROLE}" \
--runtime "${LAMBDA_RUNTIME}" \
--timeout "${LAMBDA_TIMEOUT}" \
> /dev/null
--timeout "${LAMBDA_TIMEOUT}"
- name: Wait for function configuration update
shell: bash
run: |
aws lambda wait function-updated-v2 \
--function-name "${FUNCTION_NAME}" \
> /dev/null
--function-name "${FUNCTION_NAME}"
tests-prod:
needs: deploy-prod
Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -258,15 +258,13 @@ jobs:
aws lambda update-function-code \
--function-name "${FUNCTION_NAME}" \
--architectures "${LAMBDA_ARCHITECTURES}" \
--zip-file "fileb://./${LAMBDA_FUNCTION}.zip" \
> /dev/null
--zip-file "fileb://./${LAMBDA_FUNCTION}.zip"
- name: Wait for function code update
shell: bash
run: |
aws lambda wait function-updated-v2 \
--function-name "${FUNCTION_NAME}" \
> /dev/null
--function-name "${FUNCTION_NAME}"
- name: Update function configuration
shell: bash
Expand All @@ -279,15 +277,13 @@ jobs:
--memory-size "${LAMBDA_MEMORY}" \
--role "${LAMBDA_ROLE}" \
--runtime "${LAMBDA_RUNTIME}" \
--timeout "${LAMBDA_TIMEOUT}" \
> /dev/null
--timeout "${LAMBDA_TIMEOUT}"
- name: Wait for function configuration update
shell: bash
run: |
aws lambda wait function-updated-v2 \
--function-name "${FUNCTION_NAME}" \
> /dev/null
--function-name "${FUNCTION_NAME}"
- name: Post comment
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
Expand Down

0 comments on commit c307965

Please sign in to comment.