Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@
"ngrok": "^4.3.0",
"prettier": "^2.1.2",
"serverless": "^3.23.0",
"serverless-dynamodb-local": "^0.2.40",
"serverless-dynamodb": "^0.2.47",
"serverless-iam-roles-per-function": "^3.2.0",
"serverless-jetpack": "^0.11.1",
"serverless-offline": "^8.0.0",
"serverless-jetpack": "^0.11.2",
"serverless-offline": "^13.3.2",
"serverless-s3-local": "^0.6.22",
"serverless-s3-sync": "3.1.0",
"sort-package-json": "^1.46.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/backend/src/db/ddb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ const params = IS_OFFLINE
? {
region: 'localhost',
endpoint: 'http://localhost:8000',
accessKeyId: 'DEFAULT_ACCESS_KEY',
secretAccessKey: 'DEFAULT_SECRET',
accessKeyId: 'DEFAULTACCESSKEY',
secretAccessKey: 'DEFAULTSECRET',
}
: {}

Expand Down
10 changes: 1 addition & 9 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,7 @@ PDF printing is developed inside `packages/print`. Run `yarn debug` inside this
- AWS_ACCESS_KEY_ID
- String containing AWS IAM User ID used for deployment
- AWS_SECRET_ACCESS_KEY

- String containing AWS IAM User Secret Key used for deployment

- URL_ORIGIN
- String containing the origin of the environments. Used in emails. E.g.: lara.exampleCompany
- COMPANY_ABBREVIATION
Expand Down Expand Up @@ -129,9 +127,7 @@ The following variables can be added to your cloned version of Lara.
- PROD_MICROSOFT_CLIENT_ID
- String containing client id
- STAGING_MICROSOFT_CLIENT_ID

- String containing staging client id used in CI/CD Pipelines.

- AWS_ACCESS_KEY_ID
- String containing AWS IAM User ID used for deployment
- AWS_SECRET_ACCESS_KEY
Expand All @@ -140,7 +136,7 @@ The following variables can be added to your cloned version of Lara.
- String containing the value for the authorization header
- URL_ORIGIN
- String containing the origin of the environments. Used in emails. E.g.: lara.exampleCompany
- Debug
- DEBUG
- More information is shown in the console. Not necessary for production.
- COMPANY_ABBREVIATION
- Shortform of your companies name to create s3-buckets
Expand Down Expand Up @@ -174,19 +170,15 @@ The following variables can be added to your cloned version of Lara.
- LARA_SECRET
- Secret used in creating oauth secrets
- STAGE

- String containing stage (probably: dev/production/staging)

- STAGING_BE_URL
- String containing the URL to the staging backend e.g.: https://staging.api.lara.exampleCompany.com/. Mainly used in CI/CD Pipelines
- STAGING_FE_URL
- String containing the URL to the staging frontend e.g.: https://staging.lara.exampleCompany.com/. Mainly used in CI/CD Pipelines
- PRODUCTION_BE_URL
- String containing the URL to the production backend e.g.: https://api.lara.exampleCompany.com/. Mainly used in CI/CD Pipelines
- PRODUCTION_FE_URL

- String containing the URL to the production frontend e.g.: https://lara.exampleCompany.com/. Mainly used in CI/CD Pipelines

- TEST_TRAINEE_ID
- ID of test trainee on the stating environment for e2e tests. If not provided e2e tests are skipped.
- TEST_TRAINER_ID
Expand Down
11 changes: 6 additions & 5 deletions serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,21 @@ provider:
runtime: nodejs18.x
lambdaHashingVersion: 20201221
environment: ${file(dotenv.js)} # takes care of env variables in CI/CD

timeout: 30

plugins:
- serverless-jetpack
- serverless-iam-roles-per-function
- serverless-dynamodb-local
- serverless-s3-sync
- serverless-dynamodb
# - serverless-s3-sync
- serverless-s3-local
- serverless-offline

custom:
stage: ${opt:stage, self:provider.stage}
serverless-offline:
useChildProcesses: true
dynamodb:
serverless-dynamodb:
stages:
- dev
inMemory: false
Expand Down Expand Up @@ -57,6 +57,7 @@ custom:
buckets:
- bucketName: ${self:provider.environment.COMPANY_ABBREVIATION}-lara-frontend-${self:custom.stage}
localDir: packages/frontend/dist
endpoint: http://localhost:8181

config:
table:
Expand Down Expand Up @@ -373,7 +374,7 @@ resources:
IPV6Enabled: true
Enabled: true
Comment: Frontend
CustomErrorResponses:
CustomErrorResponses:
- ErrorCachingMinTTL: 0
ErrorCode: 403
ResponseCode: 200
Expand Down
Loading