Skip to content

Commit

Permalink
cfn fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
devksingh4 committed Feb 2, 2025
1 parent 80d77d9 commit aaceebb
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 17 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
name: Run Unit Tests
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11 for testing
- name: Set up Python 3.12 for testing
uses: actions/setup-python@v5
with:
python-version: 3.11
python-version: 3.12
- name: Setup Node LTS
uses: actions/setup-node@v4
with:
Expand All @@ -36,6 +36,10 @@ jobs:
- uses: aws-actions/setup-sam@v2
with:
use-installer: true
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.12
- uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
Expand Down Expand Up @@ -84,10 +88,10 @@ jobs:
- deploy-cf-pages-dev
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11 for testing
- name: Set up Python 3.12 for testing
uses: actions/setup-python@v5
with:
python-version: 3.11
python-version: 3.12
- name: Setup Node LTS
uses: actions/setup-node@v4
with:
Expand All @@ -102,4 +106,4 @@ jobs:
RB_PLAYWRIGHT_USERNAME: ${{ secrets.RB_PLAYWRIGHT_USERNAME }}
RB_PLAYWRIGHT_PASSWORD: ${{ secrets.RB_PLAYWRIGHT_PASSWORD }}
RB_JWT_SECRET: ${{ secrets.RB_JWT_SECRET }}
CI: true
CI: true
14 changes: 9 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
name: Run Unit Tests
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11 for testing
- name: Set up Python 3.12 for testing
uses: actions/setup-python@v5
with:
python-version: 3.11
python-version: 3.12
- name: Setup Node LTS
uses: actions/setup-node@v4
with:
Expand All @@ -36,6 +36,10 @@ jobs:
- uses: aws-actions/setup-sam@v2
with:
use-installer: true
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.12
- uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
Expand Down Expand Up @@ -84,10 +88,10 @@ jobs:
name: Perform live testing
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11 for testing
- name: Set up Python 3.12 for testing
uses: actions/setup-python@v5
with:
python-version: 3.11
python-version: 3.12
- name: Setup Node LTS
uses: actions/setup-node@v4
with:
Expand Down Expand Up @@ -169,4 +173,4 @@ jobs:
- name: Call the API healthz endpoint
run: curl -f https://resumes.aws.acmuiuc.org/api/v1/healthz
- name: Call the base UI endpoint
run: curl -f https://resumes.acm.illinois.edu
run: curl -f https://resumes.acm.illinois.edu
14 changes: 7 additions & 7 deletions cloudformation/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ Resources:
Properties:
CodeUri: ../api
AutoPublishAlias: live
Runtime: python3.10
Runtime: python3.12
Description: Resume Book API Lambda - No VPC attachment
FunctionName: !Sub ${LambdaFunctionName}-novpc
Handler: app.lambda_handler
Expand Down Expand Up @@ -131,7 +131,7 @@ Resources:
Properties:
CodeUri: ../api
AutoPublishAlias: live
Runtime: python3.10
Runtime: python3.12
Description: Resume Book API Lambda
FunctionName: !Ref LambdaFunctionName
Handler: app.lambda_handler
Expand Down Expand Up @@ -161,7 +161,7 @@ Resources:
Properties:
CodeUri: ../api/authorizers/
AutoPublishAlias: live
Runtime: python3.10
Runtime: python3.12
Description: Resume Book Auth Lambda
FunctionName: !Ref AuthLambdaFunctionName
Handler: combined.lambda_handler
Expand Down Expand Up @@ -299,14 +299,14 @@ Resources:
Condition: IsProd
Properties:
AlarmName: !Sub '${ResumeBookApiGWName}-latency-alarm'
AlarmDescription: !Sub 'Alarm if ${ResumeBookApiGWName} API gateway latency is > 3s.'
AlarmDescription: !Sub 'Alarm if ${ResumeBookApiGWName} API gateway latency is too high.'
Namespace: 'AWS/ApiGateway'
MetricName: 'Latency'
Statistic: 'Average'
ExtendedStatistic: 'tm99'
Period: '60'
EvaluationPeriods: '1'
EvaluationPeriods: '5'
ComparisonOperator: 'GreaterThanThreshold'
Threshold: '8000'
Threshold: '2000'
AlarmActions:
- !Ref AlertSNSArn
Dimensions:
Expand Down

0 comments on commit aaceebb

Please sign in to comment.