Skip to content

Commit

Permalink
template
Browse files Browse the repository at this point in the history
  • Loading branch information
devksingh4 committed Oct 3, 2023
1 parent 3696082 commit ccda932
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Deploy Resources to AWS DEV
run-name: Deploy resources to AWS DEV by @${{ github.actor }}

on:
pull_request:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: aws-actions/setup-sam@v2
with:
use-installer: true
- uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.AWS_DEV_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_DEV_SECRET_ACCESS_KEY }}
aws-region: us-east-1
- run: ./deploy.sh
8 changes: 4 additions & 4 deletions docs/swagger-resume-book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ paths:
httpMethod: POST
contentHandling: CONVERT_TO_TEXT
type: aws_proxy
uri: arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:298118738376:function:infra-resume-book-api-lambda/invocations
uri: arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:infra-resume-book-api-lambda/invocations

/api/v1/student/getUploadURL:
get:
Expand All @@ -58,7 +58,7 @@ paths:
httpMethod: POST
contentHandling: CONVERT_TO_TEXT
type: aws_proxy
uri: arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:298118738376:function:infra-resume-book-api-lambda/invocations
uri: arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:infra-resume-book-api-lambda/invocations

/api/v1/recruiter/getResumeListings:
get:
Expand All @@ -83,7 +83,7 @@ paths:
httpMethod: POST
contentHandling: CONVERT_TO_TEXT
type: aws_proxy
uri: arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:298118738376:function:infra-resume-book-api-lambda/invocations
uri: arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:infra-resume-book-api-lambda/invocations

/api/v1/recruiter/getResumeUrl:
get:
Expand All @@ -108,4 +108,4 @@ paths:
httpMethod: POST
contentHandling: CONVERT_TO_TEXT
type: aws_proxy
uri: arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:298118738376:function:infra-resume-book-api-lambda/invocations
uri: arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:infra-resume-book-api-lambda/invocations

0 comments on commit ccda932

Please sign in to comment.