Published On: January 28th, 2023Categories: AI News

This is the DIY challenge of the Templating Serverless Applications task in AWS Cloud Quest.



DIY Steps:

  1. Add an Amazon DynamoDB table to the AWS SAM template template.yaml, you can read more about this topic here

    AWSTemplateFormatVersion: '2010-09-09'
    Transform: AWS::Serverless-2016-10-31
    Description: >
      appfn
    
      Sample SAM Template for appfn
    
    # More info about Globals: https://github.com/awslabs/serverless-application-model/blob/master/docs/globals.rst
    Globals:
      Function:
        Timeout: 3
    
    Resources:
      HelloWorldFunction:
        Type: AWS::Serverless::Function # More info about Function Resource: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction
        Properties:
          CodeUri: hello_world/
          Handler: app.lambda_handler
          Runtime: python3.7
          Events:
            HelloWorld:
              Type: Api # More info about API Event Source:...

Source link

[gs-fb-comments]

Leave A Comment