From e94ddc1be676458ead2337ba24ee54f717dbc13e Mon Sep 17 00:00:00 2001 From: Sannidhi Shukla Date: Mon, 23 Dec 2024 15:15:19 -0700 Subject: [PATCH] remove serverless offline ssm, update readme --- README.md | 4 +++- package-lock.json | 10 ---------- package.json | 1 - serverless.ts | 6 +----- 4 files changed, 4 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 30e5bc4..3d0ffe4 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,9 @@ Deployment is done locally to the AWS account `Innov-RES-Dev` and _not_ yet conn 2. Test code changes locally 3. Log into AWS console, and open "Command line and programmatic access" option under `Innov-RES-Dev` account 4. Follow instructions in modal to save AWS credentials to `~/.aws/credentials` file -5. Run `npx sls deploy --aws-profile {INSERT PROFILE NAME HERE}` to deploy this Serverless project to AWS +5. Log into Bitwarden and copy the value of the "Feedback API Serverless Access Key (feedback-api-access-key)" item in the "Resident Experience" collection +6. Run `export SERVERLESS_ACCESS_KEY={INSERT ACCESS KEY VALUE FROM BITWARDEN HERE}` in the terminal +7. Run `npx sls deploy --aws-profile {INSERT PROFILE NAME HERE} --` to deploy this Serverless project to AWS ## Test your service diff --git a/package-lock.json b/package-lock.json index d138d9f..6b6dfa4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -30,7 +30,6 @@ "prettier": "2.8.8", "serverless": "4.4.3", "serverless-offline": "14.4.0", - "serverless-offline-ssm": "6.2.0", "ts-jest": "29.1.2", "tsconfig-paths": "3.15.0", "typescript": "4.9.5" @@ -9508,15 +9507,6 @@ "serverless": "^4.0.0" } }, - "node_modules/serverless-offline-ssm": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/serverless-offline-ssm/-/serverless-offline-ssm-6.2.0.tgz", - "integrity": "sha512-Af7JeLbU4OHAx7ZgAs2OLP2DGKyp/g45rX7SWQ8KiBzn47jme+MqN+GOV6qd5oZ8V9khd3p62+RueHR3ezEZZQ==", - "dev": true, - "engines": { - "node": ">=6.0" - } - }, "node_modules/serverless-offline/node_modules/chalk": { "version": "5.3.0", "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.3.0.tgz", diff --git a/package.json b/package.json index c9122bb..7a796f9 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,6 @@ "prettier": "2.8.8", "serverless": "4.4.3", "serverless-offline": "14.4.0", - "serverless-offline-ssm": "6.2.0", "ts-jest": "29.1.2", "tsconfig-paths": "3.15.0", "typescript": "4.9.5" diff --git a/serverless.ts b/serverless.ts index 6e72041..88e8b6e 100644 --- a/serverless.ts +++ b/serverless.ts @@ -6,7 +6,7 @@ import summary from '@functions/summary'; const serverlessConfiguration = { service: 'feedback-api', frameworkVersion: '4', - plugins: ['serverless-offline-ssm', 'serverless-offline'], + plugins: ['serverless-offline'], provider: { name: 'aws', stage: 'dev', @@ -57,10 +57,6 @@ const serverlessConfiguration = { }, 'serverless-offline': { noPrependStageInUrl: true - }, - 'serverless-offline-ssm': { - // Values mocked by .env file - stages: ['dev'] } } };