AWS Lambda 微服务模板

该模板使用 AWS Lambda 和 CDK 为您创建一个无服务器微服务。

您需要 Node.js NPM 7 和 CDK CLI 来使用此模板。

确保已通过 AWS CLI 进行身份验证,并设置以下环境变量:

  • X_APP_NAME:服务唯一标识符(帐户范围)。
  • X_APP_DEPLOYMENT_ENV:环境唯一标识符(帐户和服务范围)。
zip
aws-lambda-microservice-main.zip 预估大小:47个文件
folder
aws-lambda-microservice-main 文件夹
file
.eslintrc 845B
folder
.github 文件夹
folder
workflows 文件夹
file
deploy.yml 712B
file
setup.js 2KB
file
webpack.config.js 2KB
file
.prettierignore 77B
file
babel.config.js 690B
folder
.vscode 文件夹
folder
.ropeproject 文件夹
file
objectdb 6B
file
config.py 5KB
file
settings.json 140B
file
.npmignore 65B
file
husky.config.js 122B
file
tsconfig.json 683B
file
jest.config.js 300B
file
.prettierrc 67B
file
README.md 2KB
file
cdk.json 441B
file
.lintstagedrc.js 68B
file
cdk.context.json 179B
file
.gitignore 45B
folder
functions 文件夹
folder
sayHello 文件夹
file
handler.ts 1KB
file
sayHello.ts 398B
file
uploadFile.ts 394B
file
sayHello.spec.ts 105B
file
writeFile.ts 222B
file
package-lock.json 65KB
file
package.json 353B
folder
sayGoodbye 文件夹
file
write_to_file.py 146B
file
handler.py 656B
file
requirements.txt 11B
file
upload_file.py 280B
file
say_goodbye.py 283B
file
handler.config.json 308B
folder
infra 文件夹
file
getLambdaProps.ts 3KB
file
index.ts 210B
file
S3Bucket.ts 2KB
file
setup.ts 214B
file
S3Buckets.ts 1KB
file
getServiceAppProps.ts 1KB
file
environment.ts 1KB
file
ServiceStack.ts 682B
file
ServerlessService.ts 2KB
file
RestApi.ts 1KB
file
ServiceApp.ts 535B
file
Lambdas.ts 3KB
file
.eslintignore 65B
file
package-lock.json 502KB
file
package.json 2KB
zip 文件大小:164.25KB