title: AWS Cloudformation : Passing environmental variables as parameters to lambda functions
body: <p>I am creating a cloud formation for lambda . I want to have a generic lambda script that created lambda . I am having problem injecting "Environment" parameter from outside .</p>
  
  <p>I want to pass the key value pair object as parameter . Can some one tell me how to do it . I have highlighted it below </p>
  
  <pre><code>{
    "Variables" : **{ String:String, ... }**
  }
  
  {
    "Type" : "AWS::Lambda::Function",
    "Properties" : {
      "Code" : Code,
      "DeadLetterConfig" : DeadLetterConfig,
      "Description" : String,
      "Environment" : Environment,
      "FunctionName" : String,
      "Handler" : String,
      "KmsKeyArn" : String,
      "MemorySize" : Integer,
      "ReservedConcurrentExecutions" : Integer,
      "Role" : String,
      "Runtime" : String,
      "Timeout" : Integer,
      "TracingConfig" : TracingConfig,
      "VpcConfig" : VPCConfig,
      "Tags" : [ Resource Tag, ... ]
    }
  }
  </code></pre>