aws-sam

AWS SAM Nested Application in Python with Dynamorm

邮差的信 提交于 2020-06-16 11:09:45
问题 I am using AWS SAM to build a Serverless application. I followed the instruction to build a nested application. My application structure is basically the following: . ├── MAKEFILE ├── README.md ├── __init__.py ├── apps │ ├── __init__.py │ ├── account │ │ ├── __init__.py │ │ ├── endpoints.py │ │ ├── models.py │ │ ├── requirements.txt │ │ └── template.yaml ├── samconfig.toml └── template.yaml The requirements.txt in the folder apps/account/ has the following python packages: boto3 marshmallow

AWS SAM Nested Application in Python with Dynamorm

余生颓废 提交于 2020-06-16 11:04:03
问题 I am using AWS SAM to build a Serverless application. I followed the instruction to build a nested application. My application structure is basically the following: . ├── MAKEFILE ├── README.md ├── __init__.py ├── apps │ ├── __init__.py │ ├── account │ │ ├── __init__.py │ │ ├── endpoints.py │ │ ├── models.py │ │ ├── requirements.txt │ │ └── template.yaml ├── samconfig.toml └── template.yaml The requirements.txt in the folder apps/account/ has the following python packages: boto3 marshmallow

How to add a request validator in a AWS SAM template for AWS::Serverless::Api?

删除回忆录丶 提交于 2020-04-08 18:08:12
问题 I'm trying to use AWS SAM to link a request validator resource to a serverless API in a SAM template. I have created the request validator and referenced the API in its RestApiId but the validator doesn't get set as the API default validator option in the AWS console. AWSTemplateFormatVersion: '2010-09-09' Transform: AWS::Serverless-2016-10-31 Description: > Discription for the template Globals: Function: Timeout: 30 Resources: MyAPI: Type: AWS::Serverless::Api Properties: Name: MyAPI

how to include multiple resource files in SAM template.yml

断了今生、忘了曾经 提交于 2020-03-21 06:59:36
问题 I want to write my cloud formation yml file in a different file and load them separately. It is easy to do it in the serverless framework but I couldn't figure it out how to do it with SAM. Would you mind help me how to do it? I provided a copy of the project below: https://github.com/day2daychallenge/nest_application.git my template.yml file: AWSTemplateFormatVersion: '2010-09-09' Transform: AWS::Serverless-2016-10-31 Description: > Sample SAM Template # Create our resources with separate