Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Automatic Deployment to Production and Development Environments #20

Merged
merged 13 commits into from
Nov 5, 2024
2 changes: 1 addition & 1 deletion .github/workflows/deploy_prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
- name: Configure AWS Credentials for Production Account
uses: aws-actions/[email protected]
with:
role-to-assume: arn:aws:iam::864899856155:oidc-provider/token.actions.githubusercontent.com
role-to-assume: arn:aws:iam::864899856155:role/GitHubDeployRole
aws-region: us-east-2

- name: Deploy to Production
Expand Down
3,777 changes: 2,802 additions & 975 deletions backend/package-lock.json

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"author": "",
"license": "ISC",
"devDependencies": {
"@aws-sdk/types": "^3.679.0",
"@eslint/js": "^9.14.0",
"@types/aws-lambda": "^8.10.145",
"@types/jest": "^29.5.13",
Expand All @@ -24,7 +25,11 @@
"typescript-eslint": "^8.12.2"
},
"dependencies": {
"@aws-sdk/client-dynamodb": "^3.682.0",
"@aws-sdk/client-s3": "^3.685.0",
"@aws-sdk/lib-dynamodb": "^3.685.0",
"aws-lambda": "^1.0.7",
"aws-sdk": "^2.1691.0",
"axios": "^1.7.7",
"bluebird": "^3.7.2",
"commander": "^12.1.0",
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion backend/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ Resources:
Outputs:
ApiUrl:
Description: "API Gateway endpoint URL"
Value: !Sub "https://${MyApi}.execute-api.${AWS::Region}.amazonaws.com/dev/"
Value: !Sub "https://${MyApi}.execute-api.${AWS::Region}.amazonaws.com/${Stage}/"

Parameters:
Stage:
Expand Down
4 changes: 2 additions & 2 deletions backend/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
// "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
"types": ["jest"], /* Specify type package names to be included without being referenced in a source file. */
"types": ["jest", "@aws-sdk/client-s3", "@aws-sdk/client-dynamodb", "@aws-sdk/lib-dynamodb"], /* Specify type package names to be included without being referenced in a source file. */
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
// "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
// "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */
Expand Down Expand Up @@ -105,6 +105,6 @@
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
"skipLibCheck": true /* Skip type checking all .d.ts files. */
},
"include": ["src/**/*.ts", "src/handlers/PackageDelete/index.mjs"],
"include": ["src/**/*.ts"],
"exclude": ["node_modules", "dist"]
}
Loading
Loading