Skip to content

Commit

Permalink
Comment out deploy, fix bigint
Browse files Browse the repository at this point in the history
  • Loading branch information
berryd committed Jan 10, 2024
1 parent 16b33c4 commit b150655
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/waf-controller.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ jitter() {
#10 seconds
LONGEST=1000
DIV=100
EXP=$(perl -e "print $SHORTEST**$1")
EXP=$(perl -e "use bigint; print $SHORTEST**$1")
MIN=$(($EXP>$LONGEST ? $LONGEST : $EXP))
RND=$(shuf -i$SHORTEST-$MIN -n1)
perl -e "print $RND/$DIV"
}

#Attempt to avoid resource contention from the start
sleep $(jitter $(shuf -i1-50 -n1))
sleep $(jitter $(shuf -i1-10 -n1))

for ((i=1; i <= $CIRCUIT_BREAKER; i++)); do
#This loop is ONLY for retrying if the retries exceeded exception is thrown
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,11 @@ jobs:
# run: |
# #!/bin/bash
# aws wafv2 update-ip-set --name=${{ steps.fetch-ip-set-arns.outputs.IPSET_NAME }} --scope=CLOUDFRONT --id=${{ steps.fetch-ip-set-arns.outputs.IPSET_ID }} --lock-token=${{ steps.fetch-ip-set-arns.outputs.IPSET_LOCK_TOKEN }} --addresses ${{ steps.get-ip.outputs.RUNNER_IP }} --action=REMOVE
- name: deploy
run: |
# When deploying multiple copies of this quickstart to the same AWS Account (not ideal), a prefix helps prevent stepping on each other.
# This can optionally be set as an GitHub Actions Secret
./deploy.sh $STAGE_PREFIX$branch_name
#- name: deploy
# run: |
# # When deploying multiple copies of this quickstart to the same AWS Account (not ideal), a prefix helps prevent stepping on each other.
# # This can optionally be set as an GitHub Actions Secret
# ./deploy.sh $STAGE_PREFIX$branch_name
- name: Endpoint
id: endpoint
run: |
Expand Down

0 comments on commit b150655

Please sign in to comment.