AWS Lambda Create a Lambda Function with CloudFromation: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 30: Line 30:
         <span id='Variables'></span>Variables:
         <span id='Variables'></span>Variables:
           MY_ENV_VAR: 'my value'
           MY_ENV_VAR: 'my value'
       VpcConfig:
       [[AWS_Lambda_Concepts#Relationship_to_a_VPC|VpcConfig]]:
         VPCConfig
         SubnetIds:
          - red-subnet
        SecurityGroupIds:
          - ...
       MemorySize: Integer
       MemorySize: Integer
       Role: String
       Role: String

Revision as of 20:41, 4 April 2019

External

Internal

Resource Types

AWS::Lambda::Function

AWS::Lambda::Function
CreateFunction
Resources:
  LambdaExample:
    Type: "AWS::Lambda::Function"
    Properties: 
      FunctionName: my-lambda
      Description: 'Some description'
      Code:
        S3Bucket: a-bucket
        S3Key: a-deployment-package
        # S3ObjectVersion: String
        # ZipFile: String
      Runtime: java-1.8.0-openjdk
      Environment:
        Variables:
          MY_ENV_VAR: 'my value'
      VpcConfig:
        SubnetIds:
          - red-subnet
        SecurityGroupIds:
          - ...
      MemorySize: Integer
      Role: String
      Timeout: Integer
      Handler: String
      ReservedConcurrentExecutions: Integer
      DeadLetterConfig:
        DeadLetterConfig
      KmsKeyArn: String
      Layers:
        - String
      TracingConfig:
        TracingConfig
      Tags:
        Resource Tag

Create a bash Lambda

Publishing a Custom Runtime

Create a Java Lambda

Building Lambda Functions with Java