Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
skrothapalli1 authored Nov 10, 2022
1 parent 01eb637 commit 24d9fe7
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 13 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -143,4 +143,5 @@ build
CD.sh
PUB.sh
CREATE.sh
tsconfig.tsbuildinfo
tsconfig.tsbuildinfo
.idea/
2 changes: 2 additions & 0 deletions STUDYPORTALS.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ Run `sam build --region us-east-1` to build the infrastructure consisting of an

Run `sam package --region us-east-1 --s3-bucket devops-sam-deployments-us-east-1 --output-template-file packaged.yaml` to prepare for deployment

Run `sam publish --template packaged.yaml --region us-east-1`

Deploy it with `sam deploy --stack-name portal-experiments --region us-east-1 --capabilities CAPABILITY_IAM CAPABILITY_AUTO_EXPAND --parameter-overrides BucketNameParameter="portal-experiments" AlternateDomainNames="portal-experiments.studyportals.xyz" --s3-bucket devops-sam-deployments-us-east-1`

Take note of the `UserPoolId` and `CognitoAuthDomain` and proceed further
Expand Down
24 changes: 12 additions & 12 deletions template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ Resources:
Properties:
CodeUri: src/lambda-edge/check-auth/
Handler: bundle.handler
Runtime: nodejs12.x
Runtime: nodejs16.x
Role: !GetAtt LambdaEdgeExecutionRole.Arn
Timeout: 5

Expand All @@ -157,7 +157,7 @@ Resources:
Properties:
CodeUri: src/lambda-edge/parse-auth/
Handler: bundle.handler
Runtime: nodejs12.x
Runtime: nodejs16.x
Role: !GetAtt LambdaEdgeExecutionRole.Arn
Timeout: 5

Expand All @@ -166,7 +166,7 @@ Resources:
Properties:
CodeUri: src/lambda-edge/refresh-auth/
Handler: bundle.handler
Runtime: nodejs12.x
Runtime: nodejs16.x
Role: !GetAtt LambdaEdgeExecutionRole.Arn
Timeout: 5

Expand All @@ -175,7 +175,7 @@ Resources:
Properties:
CodeUri: src/lambda-edge/http-headers/
Handler: bundle.handler
Runtime: nodejs12.x
Runtime: nodejs16.x
Role: !GetAtt LambdaEdgeExecutionRole.Arn
Timeout: 5

Expand All @@ -184,7 +184,7 @@ Resources:
Properties:
CodeUri: src/lambda-edge/sign-out/
Handler: bundle.handler
Runtime: nodejs12.x
Runtime: nodejs16.x
Role: !GetAtt LambdaEdgeExecutionRole.Arn
Timeout: 5

Expand Down Expand Up @@ -337,7 +337,7 @@ Resources:
Properties:
CodeUri: src/cfn-custom-resources/user-pool-domain/
Handler: index.handler
Runtime: nodejs12.x
Runtime: nodejs16.x
Policies:
- Version: "2012-10-17"
Statement:
Expand Down Expand Up @@ -373,7 +373,7 @@ Resources:
Properties:
CodeUri: src/cfn-custom-resources/user-pool-client/
Handler: index.handler
Runtime: nodejs12.x
Runtime: nodejs16.x
Policies:
- Version: "2012-10-17"
Statement:
Expand All @@ -396,7 +396,7 @@ Resources:
Properties:
CodeUri: src/cfn-custom-resources/client-secret-retrieval/
Handler: index.handler
Runtime: nodejs12.x
Runtime: nodejs16.x
Policies:
- Version: "2012-10-17"
Statement:
Expand All @@ -418,7 +418,7 @@ Resources:
Properties:
CodeUri: src/cfn-custom-resources/static-site/
Handler: bundle.handler
Runtime: nodejs12.x
Runtime: nodejs16.x
Timeout: 180
MemorySize: 2048
Policies:
Expand Down Expand Up @@ -457,7 +457,7 @@ Resources:
Properties:
CodeUri: src/cfn-custom-resources/react-app/
Handler: bundle.handler
Runtime: nodejs12.x
Runtime: nodejs16.x
Timeout: 180
MemorySize: 2048
Policies:
Expand Down Expand Up @@ -682,7 +682,7 @@ Resources:
Properties:
CodeUri: src/cfn-custom-resources/lambda-code-update/
Handler: index.handler
Runtime: nodejs12.x
Runtime: nodejs16.x
Role: !GetAtt LambdaCodeUpdateHandlerRole.Arn


Expand All @@ -698,7 +698,7 @@ Resources:
Properties:
CodeUri: src/cfn-custom-resources/generate-secret/
Handler: index.handler
Runtime: nodejs12.x
Runtime: nodejs16.x

Outputs:
S3Bucket:
Expand Down

0 comments on commit 24d9fe7

Please sign in to comment.